LibreOffice Module sc (master) 1
viewopti.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#include <osl/diagnose.h>
21
22#include <com/sun/star/uno/Any.hxx>
23#include <com/sun/star/uno/Sequence.hxx>
24
25#include <svtools/colorcfg.hxx>
26
27#include <global.hxx>
28#include <viewopti.hxx>
29#include <sc.hrc>
30#include <scmod.hxx>
31#include <miscuno.hxx>
32
33using namespace utl;
34using namespace com::sun::star::uno;
35
36
37
39{
40 *this = ScGridOptions();
41
42 // grid defaults differ now between the apps
43 // therefore, enter here in its own right (all in 1/100mm)
44
46 {
47 nFldDrawX = 1000; // 1cm
48 nFldDrawY = 1000;
49 nFldSnapX = 1000;
50 nFldSnapY = 1000;
51 }
52 else
53 {
54 nFldDrawX = 1270; // 0,5"
55 nFldDrawY = 1270;
56 nFldSnapX = 1270;
57 nFldSnapY = 1270;
58 }
59 nFldDivisionX = 1;
60 nFldDivisionY = 1;
61}
62
64{
65 return ( nFldDrawX == rCpy.nFldDrawX
67 && nFldDrawY == rCpy.nFldDrawY
69 && nFldSnapX == rCpy.nFldSnapX
70 && nFldSnapY == rCpy.nFldSnapY
71 && bUseGridsnap == rCpy.bUseGridsnap
72 && bSynchronize == rCpy.bSynchronize
73 && bGridVisible == rCpy.bGridVisible
74 && bEqualGrid == rCpy.bEqualGrid );
75}
76
77
79{
81}
82
84{
85 *this = rCpy;
86}
87
89{
90}
91
93{
94 aOptArr[ VOPT_FORMULAS ] = false;
95 aOptArr[ VOPT_SYNTAX ] = false;
96 aOptArr[ VOPT_HELPLINES ] = false;
97 aOptArr[ VOPT_GRID_ONTOP ] = false;
98 aOptArr[ VOPT_NOTES ] = true;
100 aOptArr[ VOPT_NULLVALS ] = true;
101 aOptArr[ VOPT_VSCROLL ] = true;
102 aOptArr[ VOPT_HSCROLL ] = true;
103 aOptArr[ VOPT_TABCONTROLS ] = true;
104 aOptArr[ VOPT_OUTLINER ] = true;
105 aOptArr[ VOPT_HEADER ] = true;
106 aOptArr[ VOPT_GRID ] = true;
107 aOptArr[ VOPT_ANCHOR ] = true;
108 aOptArr[ VOPT_PAGEBREAKS ] = true;
109 aOptArr[ VOPT_SUMMARY ] = true;
110 aOptArr[ VOPT_THEMEDCURSOR ] = false;
111
115
117
118 aDocCol = SC_MOD()->GetColorConfig().GetColorValue(svtools::DOCCOLOR).nColor;
119
121}
122
123Color const & ScViewOptions::GetGridColor( OUString* pStrName ) const
124{
125 if ( pStrName )
126 *pStrName = aGridColName;
127
128 return aGridCol;
129}
130
132
134{
135 bool bEqual = true;
136 sal_uInt16 i;
137
138 for ( i=0; i<MAX_OPT && bEqual; i++ ) bEqual = (aOptArr [i] == rOpt.aOptArr[i]);
139 for ( i=0; i<MAX_TYPE && bEqual; i++ ) bEqual = (aModeArr[i] == rOpt.aModeArr[i]);
140
141 bEqual = bEqual && (aGridCol == rOpt.aGridCol);
142 bEqual = bEqual && (aGridColName == rOpt.aGridColName);
143 bEqual = bEqual && (aGridOpt == rOpt.aGridOpt);
144 bEqual = bEqual && (aDocCol == rOpt.aDocCol);
145
146 return bEqual;
147}
148
149std::unique_ptr<SvxGridItem> ScViewOptions::CreateGridItem() const
150{
151 std::unique_ptr<SvxGridItem> pItem(new SvxGridItem( SID_ATTR_GRID_OPTIONS ));
152
153 pItem->SetFieldDrawX ( aGridOpt.GetFieldDrawX() );
154 pItem->SetFieldDivisionX ( aGridOpt.GetFieldDivisionX() );
155 pItem->SetFieldDrawY ( aGridOpt.GetFieldDrawY() );
156 pItem->SetFieldDivisionY ( aGridOpt.GetFieldDivisionY() );
157 pItem->SetFieldSnapX ( aGridOpt.GetFieldSnapX() );
158 pItem->SetFieldSnapY ( aGridOpt.GetFieldSnapY() );
159 pItem->SetUseGridSnap ( aGridOpt.GetUseGridSnap() );
160 pItem->SetSynchronize ( aGridOpt.GetSynchronize() );
161 pItem->SetGridVisible ( aGridOpt.GetGridVisible() );
162 pItem->SetEqualGrid ( aGridOpt.GetEqualGrid() );
163
164 return pItem;
165}
166
167// ScTpViewItem - data for the ViewOptions TabPage
168
170 : SfxPoolItem ( SID_SCVIEWOPTIONS ),
171 theOptions ( rOpt )
172{
173}
174
176{
177}
178
179bool ScTpViewItem::operator==( const SfxPoolItem& rItem ) const
180{
181 assert(SfxPoolItem::operator==(rItem));
182
183 const ScTpViewItem& rPItem = static_cast<const ScTpViewItem&>(rItem);
184
185 return ( theOptions == rPItem.theOptions );
186}
187
189{
190 return new ScTpViewItem( *this );
191}
192
193// Config Item containing view options
194
195constexpr OUStringLiteral CFGPATH_LAYOUT = u"Office.Calc/Layout";
196
197#define SCLAYOUTOPT_GRIDLINES 0
198#define SCLAYOUTOPT_GRIDCOLOR 1
199#define SCLAYOUTOPT_PAGEBREAK 2
200#define SCLAYOUTOPT_GUIDE 3
201#define SCLAYOUTOPT_COLROWHDR 4
202#define SCLAYOUTOPT_HORISCROLL 5
203#define SCLAYOUTOPT_VERTSCROLL 6
204#define SCLAYOUTOPT_SHEETTAB 7
205#define SCLAYOUTOPT_OUTLINE 8
206#define SCLAYOUTOPT_GRID_ONCOLOR 9
207#define SCLAYOUTOPT_SUMMARY 10
208#define SCLAYOUTOPT_THEMEDCURSOR 11
209
210constexpr OUStringLiteral CFGPATH_DISPLAY = u"Office.Calc/Content/Display";
211
212#define SCDISPLAYOPT_FORMULA 0
213#define SCDISPLAYOPT_ZEROVALUE 1
214#define SCDISPLAYOPT_NOTETAG 2
215#define SCDISPLAYOPT_FORMULAMARK 3
216#define SCDISPLAYOPT_VALUEHI 4
217#define SCDISPLAYOPT_ANCHOR 5
218#define SCDISPLAYOPT_OBJECTGRA 6
219#define SCDISPLAYOPT_CHART 7
220#define SCDISPLAYOPT_DRAWING 8
221
222constexpr OUStringLiteral CFGPATH_GRID = u"Office.Calc/Grid";
223
224#define SCGRIDOPT_RESOLU_X 0
225#define SCGRIDOPT_RESOLU_Y 1
226#define SCGRIDOPT_SUBDIV_X 2
227#define SCGRIDOPT_SUBDIV_Y 3
228#define SCGRIDOPT_OPTION_X 4
229#define SCGRIDOPT_OPTION_Y 5
230#define SCGRIDOPT_SNAPTOGRID 6
231#define SCGRIDOPT_SYNCHRON 7
232#define SCGRIDOPT_VISIBLE 8
233#define SCGRIDOPT_SIZETOGRID 9
234
236{
237 return {"Line/GridLine", // SCLAYOUTOPT_GRIDLINES
238 "Line/GridLineColor", // SCLAYOUTOPT_GRIDCOLOR
239 "Line/PageBreak", // SCLAYOUTOPT_PAGEBREAK
240 "Line/Guide", // SCLAYOUTOPT_GUIDE
241 "Window/ColumnRowHeader", // SCLAYOUTOPT_COLROWHDR
242 "Window/HorizontalScroll", // SCLAYOUTOPT_HORISCROLL
243 "Window/VerticalScroll", // SCLAYOUTOPT_VERTSCROLL
244 "Window/SheetTab", // SCLAYOUTOPT_SHEETTAB
245 "Window/OutlineSymbol", // SCLAYOUTOPT_OUTLINE
246 "Line/GridOnColoredCells", // SCLAYOUTOPT_GRID_ONCOLOR;
247 "Window/SearchSummary", // SCLAYOUTOPT_SUMMARY
248 "Window/ThemedCursor"}; // SCLAYOUTOPT_THEMEDCURSOR
249}
250
252{
253 return {"Formula", // SCDISPLAYOPT_FORMULA
254 "ZeroValue", // SCDISPLAYOPT_ZEROVALUE
255 "NoteTag", // SCDISPLAYOPT_NOTETAG
256 "FormulaMark", // SCDISPLAYOPT_FORMULAMARK
257 "ValueHighlighting", // SCDISPLAYOPT_VALUEHI
258 "Anchor", // SCDISPLAYOPT_ANCHOR
259 "ObjectGraphic", // SCDISPLAYOPT_OBJECTGRA
260 "Chart", // SCDISPLAYOPT_CHART
261 "DrawingObject"}; // SCDISPLAYOPT_DRAWING;
262}
263
265{
266 const bool bIsMetric = ScOptionsUtil::IsMetricSystem();
267
268 return {(bIsMetric ? OUString("Resolution/XAxis/Metric")
269 : OUString("Resolution/XAxis/NonMetric")), // SCGRIDOPT_RESOLU_X
270 (bIsMetric ? OUString("Resolution/YAxis/Metric")
271 : OUString("Resolution/YAxis/NonMetric")), // SCGRIDOPT_RESOLU_Y
272 "Subdivision/XAxis", // SCGRIDOPT_SUBDIV_X
273 "Subdivision/YAxis", // SCGRIDOPT_SUBDIV_Y
274 (bIsMetric ? OUString("Option/XAxis/Metric")
275 : OUString("Option/XAxis/NonMetric")), // SCGRIDOPT_OPTION_X
276 (bIsMetric ? OUString("Option/YAxis/Metric")
277 : OUString("Option/YAxis/NonMetric")), // SCGRIDOPT_OPTION_Y
278 "Option/SnapToGrid", // SCGRIDOPT_SNAPTOGRID
279 "Option/Synchronize", // SCGRIDOPT_SYNCHRON
280 "Option/VisibleGrid", // SCGRIDOPT_VISIBLE
281 "Option/SizeToGrid"}; // SCGRIDOPT_SIZETOGRID;
282}
283
285 aLayoutItem( CFGPATH_LAYOUT ),
286 aDisplayItem( CFGPATH_DISPLAY ),
287 aGridItem( CFGPATH_GRID )
288{
289 sal_Int32 nIntVal = 0;
290
292 Sequence<Any> aValues = aLayoutItem.GetProperties(aNames);
294 const Any* pValues = aValues.getConstArray();
295 OSL_ENSURE(aValues.getLength() == aNames.getLength(), "GetProperties failed");
296 if(aValues.getLength() == aNames.getLength())
297 {
298 for(int nProp = 0; nProp < aNames.getLength(); nProp++)
299 {
300 OSL_ENSURE(pValues[nProp].hasValue(), "property value missing");
301 if(pValues[nProp].hasValue())
302 {
303 switch(nProp)
304 {
306 {
307 Color aColor;
308 if ( pValues[nProp] >>= aColor )
309 SetGridColor( aColor, OUString() );
310 break;
311 }
314 break;
317 break;
320 break;
323 break;
326 break;
329 break;
332 break;
335 break;
338 break;
341 break;
344 break;
345 }
346 }
347 }
348 }
349 aLayoutItem.SetCommitLink( LINK( this, ScViewCfg, LayoutCommitHdl ) );
350
351 aNames = GetDisplayPropertyNames();
352 aValues = aDisplayItem.GetProperties(aNames);
354 pValues = aValues.getConstArray();
355 OSL_ENSURE(aValues.getLength() == aNames.getLength(), "GetProperties failed");
356 if(aValues.getLength() == aNames.getLength())
357 {
358 for(int nProp = 0; nProp < aNames.getLength(); nProp++)
359 {
360 OSL_ENSURE(pValues[nProp].hasValue(), "property value missing");
361 if(pValues[nProp].hasValue())
362 {
363 switch(nProp)
364 {
367 break;
370 break;
373 break;
376 break;
379 break;
382 break;
384 if ( pValues[nProp] >>= nIntVal )
385 {
386 //#i80528# adapt to new range eventually
387 if(sal_Int32(VOBJ_MODE_HIDE) < nIntVal) nIntVal = sal_Int32(VOBJ_MODE_SHOW);
388
389 SetObjMode( VOBJ_TYPE_OLE, static_cast<ScVObjMode>(nIntVal));
390 }
391 break;
393 if ( pValues[nProp] >>= nIntVal )
394 {
395 //#i80528# adapt to new range eventually
396 if(sal_Int32(VOBJ_MODE_HIDE) < nIntVal) nIntVal = sal_Int32(VOBJ_MODE_SHOW);
397
398 SetObjMode( VOBJ_TYPE_CHART, static_cast<ScVObjMode>(nIntVal));
399 }
400 break;
402 if ( pValues[nProp] >>= nIntVal )
403 {
404 //#i80528# adapt to new range eventually
405 if(sal_Int32(VOBJ_MODE_HIDE) < nIntVal) nIntVal = sal_Int32(VOBJ_MODE_SHOW);
406
407 SetObjMode( VOBJ_TYPE_DRAW, static_cast<ScVObjMode>(nIntVal));
408 }
409 break;
410 }
411 }
412 }
413 }
414 aDisplayItem.SetCommitLink( LINK( this, ScViewCfg, DisplayCommitHdl ) );
415
416 ScGridOptions aGrid = GetGridOptions(); //TODO: initialization necessary?
417 aNames = GetGridPropertyNames();
418 aValues = aGridItem.GetProperties(aNames);
420 pValues = aValues.getConstArray();
421 OSL_ENSURE(aValues.getLength() == aNames.getLength(), "GetProperties failed");
422 if(aValues.getLength() == aNames.getLength())
423 {
424 for(int nProp = 0; nProp < aNames.getLength(); nProp++)
425 {
426 OSL_ENSURE(pValues[nProp].hasValue(), "property value missing");
427 if(pValues[nProp].hasValue())
428 {
429 switch(nProp)
430 {
432 if (pValues[nProp] >>= nIntVal) aGrid.SetFieldDrawX( nIntVal );
433 break;
435 if (pValues[nProp] >>= nIntVal) aGrid.SetFieldDrawY( nIntVal );
436 break;
438 if (pValues[nProp] >>= nIntVal) aGrid.SetFieldDivisionX( nIntVal );
439 break;
441 if (pValues[nProp] >>= nIntVal) aGrid.SetFieldDivisionY( nIntVal );
442 break;
444 if (pValues[nProp] >>= nIntVal) aGrid.SetFieldSnapX( nIntVal );
445 break;
447 if (pValues[nProp] >>= nIntVal) aGrid.SetFieldSnapY( nIntVal );
448 break;
451 break;
454 break;
457 break;
460 break;
461 }
462 }
463 }
464 }
465 SetGridOptions( aGrid );
466 aGridItem.SetCommitLink( LINK( this, ScViewCfg, GridCommitHdl ) );
467}
468
470{
471 Sequence<OUString> aNames = GetLayoutPropertyNames();
472 Sequence<Any> aValues(aNames.getLength());
473 Any* pValues = aValues.getArray();
474
475 for(int nProp = 0; nProp < aNames.getLength(); nProp++)
476 {
477 switch(nProp)
478 {
480 pValues[nProp] <<= GetGridColor();
481 break;
483 pValues[nProp] <<= GetOption( VOPT_GRID );
484 break;
486 pValues[nProp] <<= GetOption( VOPT_GRID_ONTOP );
487 break;
489 pValues[nProp] <<= GetOption( VOPT_PAGEBREAKS );
490 break;
492 pValues[nProp] <<= GetOption( VOPT_HELPLINES );
493 break;
495 pValues[nProp] <<= GetOption( VOPT_HEADER );
496 break;
498 pValues[nProp] <<= GetOption( VOPT_HSCROLL );
499 break;
501 pValues[nProp] <<= GetOption( VOPT_VSCROLL );
502 break;
504 pValues[nProp] <<= GetOption( VOPT_TABCONTROLS );
505 break;
507 pValues[nProp] <<= GetOption( VOPT_OUTLINER );
508 break;
510 pValues[nProp] <<= GetOption( VOPT_SUMMARY );
511 break;
513 pValues[nProp] <<= GetOption( VOPT_THEMEDCURSOR );
514 break;
515 }
516 }
517 aLayoutItem.PutProperties(aNames, aValues);
518}
519
521{
522 Sequence<OUString> aNames = GetDisplayPropertyNames();
523 Sequence<Any> aValues(aNames.getLength());
524 Any* pValues = aValues.getArray();
525
526 for(int nProp = 0; nProp < aNames.getLength(); nProp++)
527 {
528 switch(nProp)
529 {
531 pValues[nProp] <<= GetOption( VOPT_FORMULAS );
532 break;
534 pValues[nProp] <<= GetOption( VOPT_NULLVALS );
535 break;
537 pValues[nProp] <<= GetOption( VOPT_NOTES );
538 break;
540 pValues[nProp] <<= GetOption( VOPT_FORMULAS_MARKS );
541 break;
543 pValues[nProp] <<= GetOption( VOPT_SYNTAX );
544 break;
546 pValues[nProp] <<= GetOption( VOPT_ANCHOR );
547 break;
549 pValues[nProp] <<= static_cast<sal_Int32>(GetObjMode( VOBJ_TYPE_OLE ));
550 break;
552 pValues[nProp] <<= static_cast<sal_Int32>(GetObjMode( VOBJ_TYPE_CHART ));
553 break;
555 pValues[nProp] <<= static_cast<sal_Int32>(GetObjMode( VOBJ_TYPE_DRAW ));
556 break;
557 }
558 }
559 aDisplayItem.PutProperties(aNames, aValues);
560}
561
563{
564 const ScGridOptions& rGrid = GetGridOptions();
565
566 Sequence<OUString> aNames = GetGridPropertyNames();
567 Sequence<Any> aValues(aNames.getLength());
568 Any* pValues = aValues.getArray();
569
570 for(int nProp = 0; nProp < aNames.getLength(); nProp++)
571 {
572 switch(nProp)
573 {
575 pValues[nProp] <<= static_cast<sal_Int32>(rGrid.GetFieldDrawX());
576 break;
578 pValues[nProp] <<= static_cast<sal_Int32>(rGrid.GetFieldDrawY());
579 break;
581 pValues[nProp] <<= static_cast<sal_Int32>(rGrid.GetFieldDivisionX());
582 break;
584 pValues[nProp] <<= static_cast<sal_Int32>(rGrid.GetFieldDivisionY());
585 break;
587 pValues[nProp] <<= static_cast<sal_Int32>(rGrid.GetFieldSnapX());
588 break;
590 pValues[nProp] <<= static_cast<sal_Int32>(rGrid.GetFieldSnapY());
591 break;
593 pValues[nProp] <<= rGrid.GetUseGridSnap();
594 break;
596 pValues[nProp] <<= rGrid.GetSynchronize();
597 break;
599 pValues[nProp] <<= rGrid.GetGridVisible();
600 break;
602 pValues[nProp] <<= rGrid.GetEqualGrid();
603 break;
604 }
605 }
606 aGridItem.PutProperties(aNames, aValues);
607}
608
610{
611 *static_cast<ScViewOptions*>(this) = rNew;
615}
616
617/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const PropertyValue * pValues
bool operator==(const ScGridOptions &rOpt) const
Definition: viewopti.cxx:63
void SetDefaults()
Definition: viewopti.cxx:38
void SetCommitLink(const Link< ScLinkConfigItem &, void > &rLink)
Definition: optutil.cxx:47
css::uno::Sequence< css::uno::Any > GetProperties(const css::uno::Sequence< OUString > &rNames)
Definition: optutil.hxx:53
static bool IsMetricSystem()
Definition: optutil.cxx:25
virtual ScTpViewItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: viewopti.cxx:188
virtual bool operator==(const SfxPoolItem &) const override
Definition: viewopti.cxx:179
virtual ~ScTpViewItem() override
Definition: viewopti.cxx:175
ScViewOptions theOptions
Definition: viewopti.hxx:139
ScTpViewItem(const ScViewOptions &rOpt)
Definition: viewopti.cxx:169
static bool GetBoolFromAny(const css::uno::Any &aAny)
Definition: miscuno.cxx:139
static css::uno::Sequence< OUString > GetLayoutPropertyNames()
Definition: viewopti.cxx:235
ScLinkConfigItem aDisplayItem
Definition: viewopti.hxx:147
static css::uno::Sequence< OUString > GetDisplayPropertyNames()
Definition: viewopti.cxx:251
void SetOptions(const ScViewOptions &rNew)
Definition: viewopti.cxx:609
ScLinkConfigItem aLayoutItem
Definition: viewopti.hxx:146
static css::uno::Sequence< OUString > GetGridPropertyNames()
Definition: viewopti.cxx:264
ScLinkConfigItem aGridItem
Definition: viewopti.hxx:148
void SetGridColor(const Color &rCol, const OUString &rName)
Definition: viewopti.hxx:91
Color aGridCol
Definition: viewopti.hxx:111
void SetOption(ScViewOption eOpt, bool bNew)
Definition: viewopti.hxx:85
void SetDefaults()
Definition: viewopti.cxx:92
std::unique_ptr< SvxGridItem > CreateGridItem() const
Definition: viewopti.cxx:149
ScViewOptions & operator=(const ScViewOptions &rCpy)
void SetObjMode(ScVObjType eObj, ScVObjMode eMode)
Definition: viewopti.hxx:88
const ScGridOptions & GetGridOptions() const
Definition: viewopti.hxx:94
bool aOptArr[MAX_OPT]
Definition: viewopti.hxx:109
ScGridOptions aGridOpt
Definition: viewopti.hxx:113
Color const & GetGridColor(OUString *pStrName=nullptr) const
Definition: viewopti.cxx:123
bool operator==(const ScViewOptions &rOpt) const
Definition: viewopti.cxx:133
OUString aGridColName
Definition: viewopti.hxx:112
ScVObjMode aModeArr[MAX_TYPE]
Definition: viewopti.hxx:110
void SetGridOptions(const ScGridOptions &rNew)
Definition: viewopti.hxx:95
sal_uInt32 nFldSnapY
bool GetGridVisible() const
bool GetUseGridSnap() const
sal_uInt32 GetFieldSnapY() const
void SetFieldSnapY(sal_uInt32 nSet)
sal_uInt32 nFldDrawX
void SetFieldDrawX(sal_uInt32 nSet)
void SetUseGridSnap(bool bSet)
void SetFieldDrawY(sal_uInt32 nSet)
sal_uInt32 GetFieldDivisionY() const
bool GetSynchronize() const
void SetSynchronize(bool bSet)
sal_uInt32 nFldSnapX
void SetEqualGrid(bool bSet)
sal_uInt32 GetFieldDrawY() const
sal_uInt32 nFldDrawY
void SetGridVisible(bool bSet)
void SetFieldSnapX(sal_uInt32 nSet)
void SetFieldDivisionY(sal_uInt32 nSet)
sal_uInt32 GetFieldSnapX() const
bool GetEqualGrid() const
void SetFieldDivisionX(sal_uInt32 nSet)
sal_uInt32 nFldDivisionY
sal_uInt32 nFldDivisionX
sal_uInt32 GetFieldDrawX() const
sal_uInt32 GetFieldDivisionX() const
ColorConfigValue GetColorValue(ColorConfigEntry eEntry, bool bSmart=true) const
bool EnableNotification(const css::uno::Sequence< OUString > &rNames, bool bEnableInternalNotification=false)
float u
ScVObjMode
Definition: global.hxx:368
@ VOBJ_MODE_SHOW
Definition: global.hxx:369
@ VOBJ_MODE_HIDE
Definition: global.hxx:370
int i
#define SC_MOD()
Definition: scmod.hxx:247
#define SCLAYOUTOPT_HORISCROLL
Definition: viewopti.cxx:202
#define SCDISPLAYOPT_OBJECTGRA
Definition: viewopti.cxx:218
#define SCGRIDOPT_OPTION_Y
Definition: viewopti.cxx:229
constexpr OUStringLiteral CFGPATH_DISPLAY
Definition: viewopti.cxx:210
#define SCLAYOUTOPT_COLROWHDR
Definition: viewopti.cxx:201
#define SCLAYOUTOPT_GUIDE
Definition: viewopti.cxx:200
#define SCGRIDOPT_SUBDIV_X
Definition: viewopti.cxx:226
#define SCDISPLAYOPT_FORMULA
Definition: viewopti.cxx:212
#define SCLAYOUTOPT_THEMEDCURSOR
Definition: viewopti.cxx:208
#define SCDISPLAYOPT_DRAWING
Definition: viewopti.cxx:220
#define SCGRIDOPT_OPTION_X
Definition: viewopti.cxx:228
#define SCLAYOUTOPT_GRID_ONCOLOR
Definition: viewopti.cxx:206
#define SCGRIDOPT_SNAPTOGRID
Definition: viewopti.cxx:230
#define SCGRIDOPT_SIZETOGRID
Definition: viewopti.cxx:233
#define SCLAYOUTOPT_OUTLINE
Definition: viewopti.cxx:205
#define SCLAYOUTOPT_SUMMARY
Definition: viewopti.cxx:207
#define SCLAYOUTOPT_PAGEBREAK
Definition: viewopti.cxx:199
#define SCLAYOUTOPT_SHEETTAB
Definition: viewopti.cxx:204
#define SCDISPLAYOPT_ZEROVALUE
Definition: viewopti.cxx:213
#define SCDISPLAYOPT_CHART
Definition: viewopti.cxx:219
constexpr OUStringLiteral CFGPATH_LAYOUT
Definition: viewopti.cxx:195
#define SCLAYOUTOPT_GRIDCOLOR
Definition: viewopti.cxx:198
#define SCGRIDOPT_VISIBLE
Definition: viewopti.cxx:232
#define SCDISPLAYOPT_FORMULAMARK
Definition: viewopti.cxx:215
#define SCGRIDOPT_RESOLU_Y
Definition: viewopti.cxx:225
#define SCDISPLAYOPT_VALUEHI
Definition: viewopti.cxx:216
#define SCLAYOUTOPT_VERTSCROLL
Definition: viewopti.cxx:203
#define SCGRIDOPT_SYNCHRON
Definition: viewopti.cxx:231
constexpr OUStringLiteral CFGPATH_GRID
Definition: viewopti.cxx:222
#define SCGRIDOPT_SUBDIV_Y
Definition: viewopti.cxx:227
#define SCLAYOUTOPT_GRIDLINES
Definition: viewopti.cxx:197
#define SCGRIDOPT_RESOLU_X
Definition: viewopti.cxx:224
IMPL_LINK_NOARG(ScViewCfg, LayoutCommitHdl, ScLinkConfigItem &, void)
Definition: viewopti.cxx:469
#define SCDISPLAYOPT_NOTETAG
Definition: viewopti.cxx:214
#define SCDISPLAYOPT_ANCHOR
Definition: viewopti.cxx:217
#define MAX_OPT
Definition: viewopti.hxx:58
#define MAX_TYPE
Definition: viewopti.hxx:59
@ VOBJ_TYPE_CHART
Definition: viewopti.hxx:54
@ VOBJ_TYPE_OLE
Definition: viewopti.hxx:53
@ VOBJ_TYPE_DRAW
Definition: viewopti.hxx:55
@ VOPT_SUMMARY
Definition: viewopti.hxx:47
@ VOPT_TABCONTROLS
Definition: viewopti.hxx:39
@ VOPT_ANCHOR
Definition: viewopti.hxx:45
@ VOPT_NULLVALS
Definition: viewopti.hxx:33
@ VOPT_HSCROLL
Definition: viewopti.hxx:38
@ VOPT_OUTLINER
Definition: viewopti.hxx:40
@ VOPT_HELPLINES
Definition: viewopti.hxx:44
@ VOPT_GRID_ONTOP
Definition: viewopti.hxx:43
@ VOPT_FORMULAS_MARKS
Definition: viewopti.hxx:36
@ VOPT_GRID
Definition: viewopti.hxx:42
@ VOPT_FORMULAS
Definition: viewopti.hxx:32
@ VOPT_NOTES
Definition: viewopti.hxx:35
@ VOPT_THEMEDCURSOR
Definition: viewopti.hxx:48
@ VOPT_HEADER
Definition: viewopti.hxx:41
@ VOPT_PAGEBREAKS
Definition: viewopti.hxx:46
@ VOPT_SYNTAX
Definition: viewopti.hxx:34
@ VOPT_VSCROLL
Definition: viewopti.hxx:37