summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell/docsh.cxx
diff options
context:
space:
mode:
authorRafael Lima <rafael.palma.lima@gmail.com>2023-03-03 14:35:51 +0000
committerTomaž Vajngerl <quikee@gmail.com>2023-03-25 08:06:13 +0000
commit5d86cc81fef7d538440c630a503a5d94c6a3be4c (patch)
tree93dcd4511cc942f50ddb734cf140af15649f7e34 /sc/source/ui/docshell/docsh.cxx
parent9a762f9ea38f7d8fa527a74af13579555e0fa61e (diff)
tdf#38948 Save solver settings to file
This patch implements the mechanism to save solver settings in LO Calc as well as export/import them from XLSX files. In MS Excel solver settings are saved as hidden named ranges, so in this patch I used the same strategy to save solver settings in Calc, i.e. by creating named ranges to store the solver settings using the same terminology used in Excel. With this we gain the ability to save solver settings by tab, as well as export/import since we already have "named ranges/expressions" import/export implemented in LO. Change-Id: Id41bca261dc3cd8e6888643f0ed6a97b26097876 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148112 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sc/source/ui/docshell/docsh.cxx')
-rw-r--r--sc/source/ui/docshell/docsh.cxx7
1 files changed, 0 insertions, 7 deletions
diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx
index f5fad1fd1f3b..b817d2db4308 100644
--- a/sc/source/ui/docshell/docsh.cxx
+++ b/sc/source/ui/docshell/docsh.cxx
@@ -115,7 +115,6 @@
#include <scextopt.hxx>
#include <compiler.hxx>
#include <warnpassword.hxx>
-#include <optsolver.hxx>
#include <sheetdata.hxx>
#include <table.hxx>
#include <tabprotection.hxx>
@@ -2948,7 +2947,6 @@ ScDocShell::~ScDocShell()
m_pPaintLockData.reset();
- m_pSolverSaveData.reset();
m_pSheetSaveData.reset();
m_pFormatSaveData.reset();
m_pOldAutoDBRange.reset();
@@ -3112,11 +3110,6 @@ weld::Window* ScDocShell::GetActiveDialogParent()
return Application::GetDefDialogParent();
}
-void ScDocShell::SetSolverSaveData( std::unique_ptr<ScOptSolverSave> pData )
-{
- m_pSolverSaveData = std::move(pData);
-}
-
ScSheetSaveData* ScDocShell::GetSheetSaveData()
{
if (!m_pSheetSaveData)