diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-11-25 13:03:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-11-27 13:10:45 +0100 |
commit | 1c8b8e97eb6127e430c1dc0fc3578cec94371fd7 (patch) | |
tree | f2b87776589810859d6300c0da5737ef96fc5d9d /sc/source/core/data/documen2.cxx | |
parent | 047e8ae5d189f030d565b13f97a4d6a45b00e6be (diff) |
sc: rowcol: tdf#50916 add UI to turn jumbo sheets on
Change-Id: I9e50c38f38acdf5a275b125e9e421a6c6af6d590
Reviewed-on: https://gerrit.libreoffice.org/83661
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/core/data/documen2.cxx')
-rw-r--r-- | sc/source/core/data/documen2.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sc/source/core/data/documen2.cxx b/sc/source/core/data/documen2.cxx index 7271fdef0d43..a779371f83b7 100644 --- a/sc/source/core/data/documen2.cxx +++ b/sc/source/core/data/documen2.cxx @@ -35,6 +35,7 @@ #include <comphelper/threadpool.hxx> #include <sal/log.hxx> +#include <scmod.hxx> #include <document.hxx> #include <table.hxx> #include <patattr.hxx> @@ -50,6 +51,7 @@ #include <markdata.hxx> #include <validat.hxx> #include <detdata.hxx> +#include <defaultsoptions.hxx> #include <sc.hrc> #include <ddelink.hxx> #include <chgtrack.hxx> @@ -168,6 +170,15 @@ ScDocument::ScDocument( ScDocumentMode eMode, SfxObjectShell* pDocShell ) : mbDocShellRecalc(false), mnMutationGuardFlags(0) { + const ScDefaultsOptions& rOpt = SC_MOD()->GetDefaultsOptions(); + if (rOpt.GetInitJumboSheets()) + { + mnMaxCol = 16384; + mnMaxRow = 16 * 1000 * 1000; + } + maPreviewSelection = { mnMaxRow, mnMaxCol }; + aCurTextWidthCalcPos = { MaxCol(), 0, 0 }; + SetStorageGrammar( formula::FormulaGrammar::GRAM_STORAGE_DEFAULT); eSrcSet = osl_getThreadTextEncoding(); |