#include <dialog.hxx>


Definition at line 131 of file dialog.hxx.
| scsolver::SolverDialog::SolverDialog | ( | SolverImpl * | p | ) |
| scsolver::SolverDialog::~SolverDialog | ( | ) | throw () [virtual] |
| virtual const rtl::OUString scsolver::SolverDialog::getDialogName | ( | ) | const [inline, virtual] |
Must return a unique name that identifies its dialog type. Should be deprecated and its use in a nested-if or switch statement is discouraged because it is not very elegant and non-safe.
Implements scsolver::BaseDialog.
Definition at line 138 of file dialog.hxx.
References scsolver::ascii().
| void scsolver::SolverDialog::setVisible | ( | bool | bVisible | ) | [virtual] |
Implements scsolver::BaseDialog.
Definition at line 536 of file dialog.cxx.
References scsolver::CalcInterface::getActiveSheet(), scsolver::SolverImpl::getCalcInterface(), getConstEditDialog(), scsolver::BaseDialog::getSolverImpl(), scsolver::ConstEditDialog::setVisible(), and scsolver::BaseDialog::setVisibleDefault().
Referenced by scsolver::RngBtnListener::actionPerformed(), close(), scsolver::ConstEditDialog::doneRangeSelection(), and scsolver::SolverImpl::execute().
| virtual bool scsolver::SolverDialog::doneRangeSelection | ( | ) | const [inline, virtual] |
This method is called when a range selection is finished. If the dialog does not contain a range selection widget pair, just leave this method empty.
Implements scsolver::BaseDialog.
Definition at line 140 of file dialog.hxx.
| void scsolver::SolverDialog::close | ( | ) | [virtual] |
Implements scsolver::BaseDialog.
Definition at line 553 of file dialog.cxx.
References getConstEditDialog(), getOptionDialog(), scsolver::ConstEditDialog::reset(), setVisible(), scsolver::OptionDialog::setVisible(), and scsolver::ConstEditDialog::setVisible().
| void scsolver::SolverDialog::initialize | ( | ) |
Definition at line 403 of file dialog.cxx.
References scsolver::BaseDialog::addButton(), scsolver::BaseDialog::addFixedLine(), scsolver::BaseDialog::addFixedText(), scsolver::BaseDialog::addListBox(), scsolver::BaseDialog::addRadioButton(), scsolver::BaseDialog::addRangeEdit(), scsolver::ascii(), scsolver::BaseDialog::getResStr(), scsolver::BaseDialog::initializeDefault(), and registerListeners().
Referenced by SolverDialog().
| ConstEditDialog * scsolver::SolverDialog::getConstEditDialog | ( | ) |
Definition at line 561 of file dialog.cxx.
References scsolver::BaseDialog::getPosSize(), scsolver::BaseDialog::getSolverImpl(), and m_pConstEditDialog.
Referenced by scsolver::OKCancelBtnListener::actionPerformed(), scsolver::ConstEditBtnListener::actionPerformed(), close(), and setVisible().
| OptionDialog * scsolver::SolverDialog::getOptionDialog | ( | ) |
Definition at line 572 of file dialog.cxx.
References scsolver::BaseDialog::getPosSize(), scsolver::BaseDialog::getSolverImpl(), and m_pOptionDialog.
Referenced by scsolver::OptionBtnListener::actionPerformed(), and close().
| sal_Int16 scsolver::SolverDialog::getSelectedConstraintPos | ( | ) |
Definition at line 583 of file dialog.cxx.
References scsolver::ascii(), and scsolver::BaseDialog::getWidgetByName().
Referenced by scsolver::ConstEditBtnListener::actionPerformed(), and updateWidgets().
| Reference< awt::XTextComponent > scsolver::SolverDialog::getXTextComponentFromWidget | ( | const rtl::OUString & | sName | ) | const |
Definition at line 592 of file dialog.cxx.
References scsolver::BaseDialog::getWidgetByName().
Referenced by getTargetCellAddress(), getVarCellAddress(), setTargetCellAddress(), and setVarCellAddress().
| rtl::OUString scsolver::SolverDialog::getTargetCellAddress | ( | ) | const |
Definition at line 601 of file dialog.cxx.
References scsolver::ascii(), and getXTextComponentFromWidget().
Referenced by scsolver::SolveModelImpl::resolveObjectiveFuncAddress().
| void scsolver::SolverDialog::setTargetCellAddress | ( | const rtl::OUString & | sAddr | ) |
Definition at line 608 of file dialog.cxx.
References scsolver::ascii(), and getXTextComponentFromWidget().
| rtl::OUString scsolver::SolverDialog::getVarCellAddress | ( | ) |
Definition at line 615 of file dialog.cxx.
References scsolver::ascii(), and getXTextComponentFromWidget().
Referenced by scsolver::SolveModelImpl::resolveDecisionVarAddress().
| void scsolver::SolverDialog::setVarCellAddress | ( | const rtl::OUString & | sAddr | ) |
Definition at line 622 of file dialog.cxx.
References scsolver::ascii(), and getXTextComponentFromWidget().
| GoalType scsolver::SolverDialog::getGoal | ( | ) | const |
Definition at line 629 of file dialog.cxx.
References scsolver::ascii(), scsolver::unohelper::getPropertyValue(), scsolver::BaseDialog::getWidgetModelByName(), scsolver::numeric::GOAL_MAXIMIZE, scsolver::numeric::GOAL_MINIMIZE, and scsolver::numeric::GOAL_UNKNOWN.
Referenced by saveModelToDocument(), scsolver::SolveModelImpl::solveLp(), and scsolver::SolveModelImpl::solveNlp().
| void scsolver::SolverDialog::setGoal | ( | GoalType | eGoal | ) |
Definition at line 645 of file dialog.cxx.
References scsolver::ascii(), scsolver::BaseDialog::getWidgetModelByName(), scsolver::numeric::GOAL_MAXIMIZE, scsolver::numeric::GOAL_MINIMIZE, scsolver::numeric::GOAL_UNKNOWN, and scsolver::unohelper::setPropertyValue().
Referenced by loadModelFromDocument(), and reset().
| void scsolver::SolverDialog::output | ( | ) |
Definition at line 670 of file dialog.cxx.
References scsolver::ascii(), scsolver::numeric::EQUAL, scsolver::ConstraintString::Equal, scsolver::numeric::GREATER_EQUAL, scsolver::ConstraintString::Left, scsolver::numeric::LESS_EQUAL, m_aConstraint, scsolver::printOUStr(), and scsolver::ConstraintString::Right.
Referenced by editConstraint(), removeConstraint(), and setConstraint().
| void scsolver::SolverDialog::editConstraint | ( | const | sal_uInt32, | |
| const rtl::OUString & | sLeft, | |||
| const rtl::OUString & | sRight, | |||
| const | EqualityType | |||
| ) |
Definition at line 730 of file dialog.cxx.
References scsolver::ConstraintString::Equal, scsolver::ConstraintString::Left, m_aConstraint, output(), scsolver::ConstraintString::Right, and setConstraintImpl().
Referenced by scsolver::OKCancelBtnListener::actionPerformed().
| void scsolver::SolverDialog::getConstraint | ( | const | sal_uInt32, | |
| rtl::OUString & | sLeft, | |||
| rtl::OUString & | sRight, | |||
| EqualityType & | eEq | |||
| ) |
Definition at line 701 of file dialog.cxx.
References scsolver::ConstraintString::Equal, scsolver::ConstraintString::Left, m_aConstraint, and scsolver::ConstraintString::Right.
Referenced by scsolver::ConstEditBtnListener::actionPerformed().
| vector< ConstraintString > scsolver::SolverDialog::getAllConstraints | ( | ) | const |
Definition at line 710 of file dialog.cxx.
References m_aConstraint.
Referenced by scsolver::SolveModelImpl::resolveConstraintAddress(), and saveModelToDocument().
| void scsolver::SolverDialog::removeConstraint | ( | const | sal_uInt32 | ) |
Definition at line 759 of file dialog.cxx.
References m_aConstraint, output(), and removeConstraintsFromListBox().
Referenced by scsolver::ConstEditBtnListener::actionPerformed().
| void scsolver::SolverDialog::clearConstraints | ( | ) |
Remove all constraints.
Definition at line 784 of file dialog.cxx.
References m_aConstraint, and removeConstraintsFromListBox().
Referenced by loadModelFromDocument(), and reset().
| void scsolver::SolverDialog::setConstraint | ( | const rtl::OUString & | sLeft, | |
| const rtl::OUString & | sRight, | |||
| const | EqualityType | |||
| ) |
Definition at line 715 of file dialog.cxx.
References scsolver::ConstraintString::Equal, scsolver::ConstraintString::Left, m_aConstraint, output(), scsolver::ConstraintString::Right, and setConstraintImpl().
Referenced by scsolver::OKCancelBtnListener::actionPerformed(), and loadModelFromDocument().
| void scsolver::SolverDialog::showMessage | ( | const rtl::OUString & | sMsg | ) |
Definition at line 862 of file dialog.cxx.
References scsolver::BaseDialog::execute(), scsolver::BaseDialog::getPosSize(), scsolver::BaseDialog::getSolverImpl(), and scsolver::BaseDialog::setRefBoundingBox().
Referenced by scsolver::ConstEditDialog::doneRangeSelection(), showSolutionFound(), showSolutionInfeasible(), scsolver::SolveModelImpl::solveLp(), scsolver::SolverImpl::solveModel(), and scsolver::SolveModelImpl::solveNlp().
| void scsolver::SolverDialog::showSolutionInfeasible | ( | ) |
Definition at line 869 of file dialog.cxx.
References scsolver::BaseDialog::getResStr(), and showMessage().
Referenced by scsolver::SolveModelImpl::solveLp().
| void scsolver::SolverDialog::showSolutionFound | ( | ) |
Definition at line 874 of file dialog.cxx.
References scsolver::BaseDialog::getResStr(), and showMessage().
Referenced by scsolver::SolveModelImpl::solveLp(), and scsolver::SolveModelImpl::solveNlp().
| void scsolver::SolverDialog::reset | ( | ) |
Definition at line 879 of file dialog.cxx.
References scsolver::ascii(), clearConstraints(), scsolver::numeric::GOAL_UNKNOWN, setGoal(), and scsolver::setTextByWidget().
Referenced by scsolver::ResetBtnListener::actionPerformed().
| void scsolver::SolverDialog::saveModelToDocument | ( | ) |
Definition at line 887 of file dialog.cxx.
References scsolver::ascii(), scsolver::numeric::EQUAL, getAllConstraints(), scsolver::SolverImpl::getCalcInterface(), getGoal(), scsolver::BaseDialog::getSolverImpl(), scsolver::getTextByWidget(), scsolver::numeric::GOAL_MAXIMIZE, scsolver::numeric::GOAL_MINIMIZE, scsolver::numeric::GOAL_UNKNOWN, scsolver::numeric::GREATER_EQUAL, scsolver::numeric::LESS_EQUAL, scsolver::Global::MODEL_METADATA_NAME, scsolver::CalcInterface::setDocumentProperty(), and scsolver::Global::STRING_SEPARATOR.
Referenced by scsolver::SaveBtnListener::actionPerformed().
| void scsolver::SolverDialog::loadModelFromDocument | ( | ) |
Definition at line 945 of file dialog.cxx.
References scsolver::ascii(), clearConstraints(), scsolver::numeric::EQUAL, scsolver::SolverImpl::getCalcInterface(), scsolver::CalcInterface::getDocumentProperty(), scsolver::BaseDialog::getSolverImpl(), scsolver::numeric::GOAL_MAXIMIZE, scsolver::numeric::GOAL_MINIMIZE, scsolver::numeric::GREATER_EQUAL, scsolver::numeric::LESS_EQUAL, scsolver::Global::MODEL_METADATA_NAME, setConstraint(), setGoal(), scsolver::setTextByWidget(), scsolver::split(), and scsolver::Global::STRING_SEPARATOR.
Referenced by scsolver::LoadBtnListener::actionPerformed().
| void scsolver::SolverDialog::updateWidgets | ( | ) |
Definition at line 996 of file dialog.cxx.
References scsolver::ascii(), scsolver::BaseDialog::enableWidget(), and getSelectedConstraintPos().
Referenced by scsolver::OKCancelBtnListener::actionPerformed(), and scsolver::ConstEditBtnListener::actionPerformed().
| void scsolver::SolverDialog::registerListeners | ( | ) | [protected, virtual] |
Definition at line 463 of file dialog.cxx.
References scsolver::ascii(), scsolver::CONST_ADD, scsolver::CONST_CHANGE, scsolver::CONST_DELETE, scsolver::SolverImpl::getCalcInterface(), scsolver::BaseDialog::getSolverImpl(), scsolver::CalcInterface::getXRangeSelection(), m_pCloseAction, m_pConstAddListener, m_pConstChangeListener, m_pConstDeleteListener, m_pConstListBoxListener, m_pLoadListener, m_pMaxListener, m_pOKListener, m_pOptionListener, m_pResetListener, m_pSaveListener, m_pSolveListener, m_pTargetRngListener, m_pTopWindowListener, m_pVarCellsRngListener, scsolver::BaseDialog::registerListener(), scsolver::TopWindowListener::setActionClosing(), and scsolver::RngBtnListener::setSingleCell().
Referenced by initialize().
| void scsolver::SolverDialog::unregisterListeners | ( | ) | [protected, virtual] |
Definition at line 515 of file dialog.cxx.
References scsolver::ascii(), m_pConstAddListener, m_pConstChangeListener, m_pConstDeleteListener, m_pConstListBoxListener, m_pLoadListener, m_pMaxListener, m_pOKListener, m_pOptionListener, m_pResetListener, m_pSaveListener, m_pTargetRngListener, m_pTopWindowListener, m_pVarCellsRngListener, and scsolver::BaseDialog::unregisterListener().
Referenced by ~SolverDialog().
| void scsolver::SolverDialog::removeConstraintsFromListBox | ( | sal_Int16 | nPos = 0, |
|
| sal_Int16 | nCount = 0 | |||
| ) | [private] |
Remove constraint entries from the list box.
| nPos | position of the first entry to be removed | |
| nCount | number of entires to be removed (all remaining items if nCount = 0) |
Definition at line 795 of file dialog.cxx.
References scsolver::ascii(), and scsolver::BaseDialog::getWidgetByName().
Referenced by clearConstraints(), and removeConstraint().
| void scsolver::SolverDialog::setConstraintImpl | ( | const rtl::OUString & | sLeft, | |
| const rtl::OUString & | sRight, | |||
| const | EqualityType, | |||
| const | sal_Bool, | |||
| const | sal_uInt32 = 0 | |||
| ) | [private] |
Set a new constraint or modify an existing one within the dialog.
Implements displaying of a new constraint or an existing constraint that has been modified. Note that this function takes care of just the view portion of the addition/modification, and it does NOT alter the internal constraint data in a model.
Definition at line 816 of file dialog.cxx.
References scsolver::ascii(), scsolver::numeric::EQUAL, scsolver::BaseDialog::getWidgetByName(), scsolver::numeric::GREATER_EQUAL, scsolver::numeric::LESS_EQUAL, and scsolver::printOUStr().
Referenced by editConstraint(), and setConstraint().
std::auto_ptr<ConstEditDialog> scsolver::SolverDialog::m_pConstEditDialog [private] |
std::auto_ptr<OptionDialog> scsolver::SolverDialog::m_pOptionDialog [private] |
Definition at line 197 of file dialog.hxx.
Referenced by registerListeners(), and unregisterListeners().
Definition at line 198 of file dialog.hxx.
Referenced by registerListeners(), and unregisterListeners().
Definition at line 199 of file dialog.hxx.
Referenced by registerListeners(), and unregisterListeners().
Definition at line 201 of file dialog.hxx.
Referenced by registerListeners(), and unregisterListeners().
Definition at line 202 of file dialog.hxx.
Referenced by registerListeners(), and unregisterListeners().
Definition at line 203 of file dialog.hxx.
Referenced by registerListeners(), and unregisterListeners().
Definition at line 204 of file dialog.hxx.
Referenced by registerListeners(), and unregisterListeners().
Definition at line 205 of file dialog.hxx.
Referenced by registerListeners(), and unregisterListeners().
Definition at line 206 of file dialog.hxx.
Referenced by registerListeners(), and unregisterListeners().
Definition at line 207 of file dialog.hxx.
Referenced by registerListeners(), and unregisterListeners().
Definition at line 208 of file dialog.hxx.
Referenced by registerListeners(), and unregisterListeners().
Definition at line 209 of file dialog.hxx.
Referenced by registerListeners(), and unregisterListeners().
Definition at line 210 of file dialog.hxx.
Referenced by registerListeners(), and unregisterListeners().
std::vector< ConstraintString > scsolver::SolverDialog::m_aConstraint [private] |
Definition at line 214 of file dialog.hxx.
Referenced by clearConstraints(), editConstraint(), getAllConstraints(), getConstraint(), output(), removeConstraint(), and setConstraint().
1.5.3