summaryrefslogtreecommitdiff
path: root/sc/source/core
diff options
context:
space:
mode:
authorHeiko Tietze <tietze.heiko@gmail.com>2021-06-08 18:12:49 +0200
committerHeiko Tietze <heiko.tietze@documentfoundation.org>2021-06-15 15:03:24 +0200
commit10ff27cc4f01693865599d24caf7ab80d95232e0 (patch)
tree0714bd4795bb6921768376b01e45b8fb026caa63 /sc/source/core
parent3ac07d7f1bcce4a9ff0d989381a0a3443fe0a5c8 (diff)
Resolves tdf#142499 - Make fat cross cursor optional
Change-Id: I9a9182f8783f951e49cdb8f897578f99281c25d1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116858 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Diffstat (limited to 'sc/source/core')
-rw-r--r--sc/source/core/tool/viewopti.cxx43
1 files changed, 26 insertions, 17 deletions
diff --git a/sc/source/core/tool/viewopti.cxx b/sc/source/core/tool/viewopti.cxx
index 45b06b47a1fa..1658cfc65ef7 100644
--- a/sc/source/core/tool/viewopti.cxx
+++ b/sc/source/core/tool/viewopti.cxx
@@ -88,22 +88,23 @@ ScViewOptions::~ScViewOptions()
void ScViewOptions::SetDefaults()
{
- aOptArr[ VOPT_FORMULAS ] = false;
- aOptArr[ VOPT_SYNTAX ] = false;
- aOptArr[ VOPT_HELPLINES ] = false;
- aOptArr[ VOPT_GRID_ONTOP ] = false;
- aOptArr[ VOPT_NOTES ] = true;
- aOptArr[ VOPT_NULLVALS ] = true;
- aOptArr[ VOPT_VSCROLL ] = true;
- aOptArr[ VOPT_HSCROLL ] = true;
- aOptArr[ VOPT_TABCONTROLS ] = true;
- aOptArr[ VOPT_OUTLINER ] = true;
- aOptArr[ VOPT_HEADER ] = true;
- aOptArr[ VOPT_GRID ] = true;
- aOptArr[ VOPT_ANCHOR ] = true;
- aOptArr[ VOPT_PAGEBREAKS ] = true;
- aOptArr[ VOPT_CLIPMARKS ] = true;
- aOptArr[ VOPT_SUMMARY ] = true;
+ aOptArr[ VOPT_FORMULAS ] = false;
+ aOptArr[ VOPT_SYNTAX ] = false;
+ aOptArr[ VOPT_HELPLINES ] = false;
+ aOptArr[ VOPT_GRID_ONTOP ] = false;
+ aOptArr[ VOPT_NOTES ] = true;
+ aOptArr[ VOPT_NULLVALS ] = true;
+ aOptArr[ VOPT_VSCROLL ] = true;
+ aOptArr[ VOPT_HSCROLL ] = true;
+ aOptArr[ VOPT_TABCONTROLS ] = true;
+ aOptArr[ VOPT_OUTLINER ] = true;
+ aOptArr[ VOPT_HEADER ] = true;
+ aOptArr[ VOPT_GRID ] = true;
+ aOptArr[ VOPT_ANCHOR ] = true;
+ aOptArr[ VOPT_PAGEBREAKS ] = true;
+ aOptArr[ VOPT_CLIPMARKS ] = true;
+ aOptArr[ VOPT_SUMMARY ] = true;
+ aOptArr[ VOPT_THEMEDCURSOR ] = false;
aModeArr[VOBJ_TYPE_OLE ] = VOBJ_MODE_SHOW;
aModeArr[VOBJ_TYPE_CHART] = VOBJ_MODE_SHOW;
@@ -198,6 +199,7 @@ ScTpViewItem* ScTpViewItem::Clone( SfxItemPool * ) const
#define SCLAYOUTOPT_OUTLINE 8
#define SCLAYOUTOPT_GRID_ONCOLOR 9
#define SCLAYOUTOPT_SUMMARY 10
+#define SCLAYOUTOPT_THEMEDCURSOR 11
#define CFGPATH_DISPLAY "Office.Calc/Content/Display"
@@ -236,7 +238,8 @@ Sequence<OUString> ScViewCfg::GetLayoutPropertyNames()
"Window/SheetTab", // SCLAYOUTOPT_SHEETTAB
"Window/OutlineSymbol", // SCLAYOUTOPT_OUTLINE
"Line/GridOnColoredCells", // SCLAYOUTOPT_GRID_ONCOLOR;
- "Window/SearchSummary"}; // SCLAYOUTOPT_SUMMARY
+ "Window/SearchSummary", // SCLAYOUTOPT_SUMMARY
+ "Window/ThemedCursor"}; // SCLAYOUTOPT_THEMEDCURSOR
}
Sequence<OUString> ScViewCfg::GetDisplayPropertyNames()
@@ -330,6 +333,9 @@ ScViewCfg::ScViewCfg() :
case SCLAYOUTOPT_SUMMARY:
SetOption( VOPT_SUMMARY, ScUnoHelpFunctions::GetBoolFromAny( pValues[nProp] ) );
break;
+ case SCLAYOUTOPT_THEMEDCURSOR:
+ SetOption( VOPT_THEMEDCURSOR, ScUnoHelpFunctions::GetBoolFromAny( pValues[nProp] ) );
+ break;
}
}
}
@@ -497,6 +503,9 @@ IMPL_LINK_NOARG(ScViewCfg, LayoutCommitHdl, ScLinkConfigItem&, void)
case SCLAYOUTOPT_SUMMARY:
pValues[nProp] <<= GetOption( VOPT_SUMMARY );
break;
+ case SCLAYOUTOPT_THEMEDCURSOR:
+ pValues[nProp] <<= GetOption( VOPT_THEMEDCURSOR );
+ break;
}
}
aLayoutItem.PutProperties(aNames, aValues);