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 <miscuno.hxx>
31
32using namespace utl;
33using namespace com::sun::star::uno;
34
35
36
38{
39 *this = ScGridOptions();
40
41 // grid defaults differ now between the apps
42 // therefore, enter here in its own right (all in 1/100mm)
43
45 {
46 nFldDrawX = 1000; // 1cm
47 nFldDrawY = 1000;
48 nFldSnapX = 1000;
49 nFldSnapY = 1000;
50 }
51 else
52 {
53 nFldDrawX = 1270; // 0,5"
54 nFldDrawY = 1270;
55 nFldSnapX = 1270;
56 nFldSnapY = 1270;
57 }
58 nFldDivisionX = 1;
59 nFldDivisionY = 1;
60}
61
63{
64 return ( nFldDrawX == rCpy.nFldDrawX
66 && nFldDrawY == rCpy.nFldDrawY
68 && nFldSnapX == rCpy.nFldSnapX
69 && nFldSnapY == rCpy.nFldSnapY
70 && bUseGridsnap == rCpy.bUseGridsnap
71 && bSynchronize == rCpy.bSynchronize
72 && bGridVisible == rCpy.bGridVisible
73 && bEqualGrid == rCpy.bEqualGrid );
74}
75
76
78{
80}
81
83{
84 *this = rCpy;
85}
86
88{
89}
90
92{
93 aOptArr[ VOPT_FORMULAS ] = false;
94 aOptArr[ VOPT_SYNTAX ] = false;
95 aOptArr[ VOPT_HELPLINES ] = false;
96 aOptArr[ VOPT_GRID_ONTOP ] = false;
97 aOptArr[ VOPT_NOTES ] = true;
99 aOptArr[ VOPT_NULLVALS ] = true;
100 aOptArr[ VOPT_VSCROLL ] = true;
101 aOptArr[ VOPT_HSCROLL ] = true;
102 aOptArr[ VOPT_TABCONTROLS ] = true;
103 aOptArr[ VOPT_OUTLINER ] = true;
104 aOptArr[ VOPT_HEADER ] = true;
105 aOptArr[ VOPT_GRID ] = true;
106 aOptArr[ VOPT_ANCHOR ] = true;
107 aOptArr[ VOPT_PAGEBREAKS ] = true;
108 aOptArr[ VOPT_SUMMARY ] = true;
109 aOptArr[ VOPT_THEMEDCURSOR ] = false;
110
114
116
118}
119
120Color const & ScViewOptions::GetGridColor( OUString* pStrName ) const
121{
122 if ( pStrName )
123 *pStrName = aGridColName;
124
125 return aGridCol;
126}
127
129
131{
132 bool bEqual = true;
133 sal_uInt16 i;
134
135 for ( i=0; i<MAX_OPT && bEqual; i++ ) bEqual = (aOptArr [i] == rOpt.aOptArr[i]);
136 for ( i=0; i<MAX_TYPE && bEqual; i++ ) bEqual = (aModeArr[i] == rOpt.aModeArr[i]);
137
138 bEqual = bEqual && (aGridCol == rOpt.aGridCol);
139 bEqual = bEqual && (aGridColName == rOpt.aGridColName);
140 bEqual = bEqual && (aGridOpt == rOpt.aGridOpt);
141
142 return bEqual;
143}
144
145std::unique_ptr<SvxGridItem> ScViewOptions::CreateGridItem() const
146{
147 std::unique_ptr<SvxGridItem> pItem(new SvxGridItem( SID_ATTR_GRID_OPTIONS ));
148
149 pItem->SetFieldDrawX ( aGridOpt.GetFieldDrawX() );
150 pItem->SetFieldDivisionX ( aGridOpt.GetFieldDivisionX() );
151 pItem->SetFieldDrawY ( aGridOpt.GetFieldDrawY() );
152 pItem->SetFieldDivisionY ( aGridOpt.GetFieldDivisionY() );
153 pItem->SetFieldSnapX ( aGridOpt.GetFieldSnapX() );
154 pItem->SetFieldSnapY ( aGridOpt.GetFieldSnapY() );
155 pItem->SetUseGridSnap ( aGridOpt.GetUseGridSnap() );
156 pItem->SetSynchronize ( aGridOpt.GetSynchronize() );
157 pItem->SetGridVisible ( aGridOpt.GetGridVisible() );
158 pItem->SetEqualGrid ( aGridOpt.GetEqualGrid() );
159
160 return pItem;
161}
162
163// ScTpViewItem - data for the ViewOptions TabPage
164
166 : SfxPoolItem ( SID_SCVIEWOPTIONS ),
167 theOptions ( rOpt )
168{
169}
170
172{
173}
174
175bool ScTpViewItem::operator==( const SfxPoolItem& rItem ) const
176{
177 assert(SfxPoolItem::operator==(rItem));
178
179 const ScTpViewItem& rPItem = static_cast<const ScTpViewItem&>(rItem);
180
181 return ( theOptions == rPItem.theOptions );
182}
183
185{
186 return new ScTpViewItem( *this );
187}
188
189// Config Item containing view options
190
191constexpr OUStringLiteral CFGPATH_LAYOUT = u"Office.Calc/Layout";
192
193#define SCLAYOUTOPT_GRIDLINES 0
194#define SCLAYOUTOPT_GRIDCOLOR 1
195#define SCLAYOUTOPT_PAGEBREAK 2
196#define SCLAYOUTOPT_GUIDE 3
197#define SCLAYOUTOPT_COLROWHDR 4
198#define SCLAYOUTOPT_HORISCROLL 5
199#define SCLAYOUTOPT_VERTSCROLL 6
200#define SCLAYOUTOPT_SHEETTAB 7
201#define SCLAYOUTOPT_OUTLINE 8
202#define SCLAYOUTOPT_GRID_ONCOLOR 9
203#define SCLAYOUTOPT_SUMMARY 10
204#define SCLAYOUTOPT_THEMEDCURSOR 11
205
206constexpr OUStringLiteral CFGPATH_DISPLAY = u"Office.Calc/Content/Display";
207
208#define SCDISPLAYOPT_FORMULA 0
209#define SCDISPLAYOPT_ZEROVALUE 1
210#define SCDISPLAYOPT_NOTETAG 2
211#define SCDISPLAYOPT_FORMULAMARK 3
212#define SCDISPLAYOPT_VALUEHI 4
213#define SCDISPLAYOPT_ANCHOR 5
214#define SCDISPLAYOPT_OBJECTGRA 6
215#define SCDISPLAYOPT_CHART 7
216#define SCDISPLAYOPT_DRAWING 8
217
218constexpr OUStringLiteral CFGPATH_GRID = u"Office.Calc/Grid";
219
220#define SCGRIDOPT_RESOLU_X 0
221#define SCGRIDOPT_RESOLU_Y 1
222#define SCGRIDOPT_SUBDIV_X 2
223#define SCGRIDOPT_SUBDIV_Y 3
224#define SCGRIDOPT_OPTION_X 4
225#define SCGRIDOPT_OPTION_Y 5
226#define SCGRIDOPT_SNAPTOGRID 6
227#define SCGRIDOPT_SYNCHRON 7
228#define SCGRIDOPT_VISIBLE 8
229#define SCGRIDOPT_SIZETOGRID 9
230
232{
233 return {"Line/GridLine", // SCLAYOUTOPT_GRIDLINES
234 "Line/GridLineColor", // SCLAYOUTOPT_GRIDCOLOR
235 "Line/PageBreak", // SCLAYOUTOPT_PAGEBREAK
236 "Line/Guide", // SCLAYOUTOPT_GUIDE
237 "Window/ColumnRowHeader", // SCLAYOUTOPT_COLROWHDR
238 "Window/HorizontalScroll", // SCLAYOUTOPT_HORISCROLL
239 "Window/VerticalScroll", // SCLAYOUTOPT_VERTSCROLL
240 "Window/SheetTab", // SCLAYOUTOPT_SHEETTAB
241 "Window/OutlineSymbol", // SCLAYOUTOPT_OUTLINE
242 "Line/GridOnColoredCells", // SCLAYOUTOPT_GRID_ONCOLOR;
243 "Window/SearchSummary", // SCLAYOUTOPT_SUMMARY
244 "Window/ThemedCursor"}; // SCLAYOUTOPT_THEMEDCURSOR
245}
246
248{
249 return {"Formula", // SCDISPLAYOPT_FORMULA
250 "ZeroValue", // SCDISPLAYOPT_ZEROVALUE
251 "NoteTag", // SCDISPLAYOPT_NOTETAG
252 "FormulaMark", // SCDISPLAYOPT_FORMULAMARK
253 "ValueHighlighting", // SCDISPLAYOPT_VALUEHI
254 "Anchor", // SCDISPLAYOPT_ANCHOR
255 "ObjectGraphic", // SCDISPLAYOPT_OBJECTGRA
256 "Chart", // SCDISPLAYOPT_CHART
257 "DrawingObject"}; // SCDISPLAYOPT_DRAWING;
258}
259
261{
262 const bool bIsMetric = ScOptionsUtil::IsMetricSystem();
263
264 return {(bIsMetric ? OUString("Resolution/XAxis/Metric")
265 : OUString("Resolution/XAxis/NonMetric")), // SCGRIDOPT_RESOLU_X
266 (bIsMetric ? OUString("Resolution/YAxis/Metric")
267 : OUString("Resolution/YAxis/NonMetric")), // SCGRIDOPT_RESOLU_Y
268 "Subdivision/XAxis", // SCGRIDOPT_SUBDIV_X
269 "Subdivision/YAxis", // SCGRIDOPT_SUBDIV_Y
270 (bIsMetric ? OUString("Option/XAxis/Metric")
271 : OUString("Option/XAxis/NonMetric")), // SCGRIDOPT_OPTION_X
272 (bIsMetric ? OUString("Option/YAxis/Metric")
273 : OUString("Option/YAxis/NonMetric")), // SCGRIDOPT_OPTION_Y
274 "Option/SnapToGrid", // SCGRIDOPT_SNAPTOGRID
275 "Option/Synchronize", // SCGRIDOPT_SYNCHRON
276 "Option/VisibleGrid", // SCGRIDOPT_VISIBLE
277 "Option/SizeToGrid"}; // SCGRIDOPT_SIZETOGRID;
278}
279
281 aLayoutItem( CFGPATH_LAYOUT ),
282 aDisplayItem( CFGPATH_DISPLAY ),
283 aGridItem( CFGPATH_GRID )
284{
285 sal_Int32 nIntVal = 0;
286
288 Sequence<Any> aValues = aLayoutItem.GetProperties(aNames);
290 const Any* pValues = aValues.getConstArray();
291 OSL_ENSURE(aValues.getLength() == aNames.getLength(), "GetProperties failed");
292 if(aValues.getLength() == aNames.getLength())
293 {
294 for(int nProp = 0; nProp < aNames.getLength(); nProp++)
295 {
296 OSL_ENSURE(pValues[nProp].hasValue(), "property value missing");
297 if(pValues[nProp].hasValue())
298 {
299 switch(nProp)
300 {
302 {
303 Color aColor;
304 if ( pValues[nProp] >>= aColor )
305 SetGridColor( aColor, OUString() );
306 break;
307 }
310 break;
313 break;
316 break;
319 break;
322 break;
325 break;
328 break;
331 break;
334 break;
337 break;
340 break;
341 }
342 }
343 }
344 }
345 aLayoutItem.SetCommitLink( LINK( this, ScViewCfg, LayoutCommitHdl ) );
346
347 aNames = GetDisplayPropertyNames();
348 aValues = aDisplayItem.GetProperties(aNames);
350 pValues = aValues.getConstArray();
351 OSL_ENSURE(aValues.getLength() == aNames.getLength(), "GetProperties failed");
352 if(aValues.getLength() == aNames.getLength())
353 {
354 for(int nProp = 0; nProp < aNames.getLength(); nProp++)
355 {
356 OSL_ENSURE(pValues[nProp].hasValue(), "property value missing");
357 if(pValues[nProp].hasValue())
358 {
359 switch(nProp)
360 {
363 break;
366 break;
369 break;
372 break;
375 break;
378 break;
380 if ( pValues[nProp] >>= nIntVal )
381 {
382 //#i80528# adapt to new range eventually
383 if(sal_Int32(VOBJ_MODE_HIDE) < nIntVal) nIntVal = sal_Int32(VOBJ_MODE_SHOW);
384
385 SetObjMode( VOBJ_TYPE_OLE, static_cast<ScVObjMode>(nIntVal));
386 }
387 break;
389 if ( pValues[nProp] >>= nIntVal )
390 {
391 //#i80528# adapt to new range eventually
392 if(sal_Int32(VOBJ_MODE_HIDE) < nIntVal) nIntVal = sal_Int32(VOBJ_MODE_SHOW);
393
394 SetObjMode( VOBJ_TYPE_CHART, static_cast<ScVObjMode>(nIntVal));
395 }
396 break;
398 if ( pValues[nProp] >>= nIntVal )
399 {
400 //#i80528# adapt to new range eventually
401 if(sal_Int32(VOBJ_MODE_HIDE) < nIntVal) nIntVal = sal_Int32(VOBJ_MODE_SHOW);
402
403 SetObjMode( VOBJ_TYPE_DRAW, static_cast<ScVObjMode>(nIntVal));
404 }
405 break;
406 }
407 }
408 }
409 }
410 aDisplayItem.SetCommitLink( LINK( this, ScViewCfg, DisplayCommitHdl ) );
411
412 ScGridOptions aGrid = GetGridOptions(); //TODO: initialization necessary?
413 aNames = GetGridPropertyNames();
414 aValues = aGridItem.GetProperties(aNames);
416 pValues = aValues.getConstArray();
417 OSL_ENSURE(aValues.getLength() == aNames.getLength(), "GetProperties failed");
418 if(aValues.getLength() == aNames.getLength())
419 {
420 for(int nProp = 0; nProp < aNames.getLength(); nProp++)
421 {
422 OSL_ENSURE(pValues[nProp].hasValue(), "property value missing");
423 if(pValues[nProp].hasValue())
424 {
425 switch(nProp)
426 {
428 if (pValues[nProp] >>= nIntVal) aGrid.SetFieldDrawX( nIntVal );
429 break;
431 if (pValues[nProp] >>= nIntVal) aGrid.SetFieldDrawY( nIntVal );
432 break;
434 if (pValues[nProp] >>= nIntVal) aGrid.SetFieldDivisionX( nIntVal );
435 break;
437 if (pValues[nProp] >>= nIntVal) aGrid.SetFieldDivisionY( nIntVal );
438 break;
440 if (pValues[nProp] >>= nIntVal) aGrid.SetFieldSnapX( nIntVal );
441 break;
443 if (pValues[nProp] >>= nIntVal) aGrid.SetFieldSnapY( nIntVal );
444 break;
447 break;
450 break;
453 break;
456 break;
457 }
458 }
459 }
460 }
461 SetGridOptions( aGrid );
462 aGridItem.SetCommitLink( LINK( this, ScViewCfg, GridCommitHdl ) );
463}
464
466{
467 Sequence<OUString> aNames = GetLayoutPropertyNames();
468 Sequence<Any> aValues(aNames.getLength());
469 Any* pValues = aValues.getArray();
470
471 for(int nProp = 0; nProp < aNames.getLength(); nProp++)
472 {
473 switch(nProp)
474 {
476 pValues[nProp] <<= GetGridColor();
477 break;
479 pValues[nProp] <<= GetOption( VOPT_GRID );
480 break;
482 pValues[nProp] <<= GetOption( VOPT_GRID_ONTOP );
483 break;
485 pValues[nProp] <<= GetOption( VOPT_PAGEBREAKS );
486 break;
488 pValues[nProp] <<= GetOption( VOPT_HELPLINES );
489 break;
491 pValues[nProp] <<= GetOption( VOPT_HEADER );
492 break;
494 pValues[nProp] <<= GetOption( VOPT_HSCROLL );
495 break;
497 pValues[nProp] <<= GetOption( VOPT_VSCROLL );
498 break;
500 pValues[nProp] <<= GetOption( VOPT_TABCONTROLS );
501 break;
503 pValues[nProp] <<= GetOption( VOPT_OUTLINER );
504 break;
506 pValues[nProp] <<= GetOption( VOPT_SUMMARY );
507 break;
509 pValues[nProp] <<= GetOption( VOPT_THEMEDCURSOR );
510 break;
511 }
512 }
513 aLayoutItem.PutProperties(aNames, aValues);
514}
515
517{
518 Sequence<OUString> aNames = GetDisplayPropertyNames();
519 Sequence<Any> aValues(aNames.getLength());
520 Any* pValues = aValues.getArray();
521
522 for(int nProp = 0; nProp < aNames.getLength(); nProp++)
523 {
524 switch(nProp)
525 {
527 pValues[nProp] <<= GetOption( VOPT_FORMULAS );
528 break;
530 pValues[nProp] <<= GetOption( VOPT_NULLVALS );
531 break;
533 pValues[nProp] <<= GetOption( VOPT_NOTES );
534 break;
536 pValues[nProp] <<= GetOption( VOPT_FORMULAS_MARKS );
537 break;
539 pValues[nProp] <<= GetOption( VOPT_SYNTAX );
540 break;
542 pValues[nProp] <<= GetOption( VOPT_ANCHOR );
543 break;
545 pValues[nProp] <<= static_cast<sal_Int32>(GetObjMode( VOBJ_TYPE_OLE ));
546 break;
548 pValues[nProp] <<= static_cast<sal_Int32>(GetObjMode( VOBJ_TYPE_CHART ));
549 break;
551 pValues[nProp] <<= static_cast<sal_Int32>(GetObjMode( VOBJ_TYPE_DRAW ));
552 break;
553 }
554 }
555 aDisplayItem.PutProperties(aNames, aValues);
556}
557
559{
560 const ScGridOptions& rGrid = GetGridOptions();
561
562 Sequence<OUString> aNames = GetGridPropertyNames();
563 Sequence<Any> aValues(aNames.getLength());
564 Any* pValues = aValues.getArray();
565
566 for(int nProp = 0; nProp < aNames.getLength(); nProp++)
567 {
568 switch(nProp)
569 {
571 pValues[nProp] <<= static_cast<sal_Int32>(rGrid.GetFieldDrawX());
572 break;
574 pValues[nProp] <<= static_cast<sal_Int32>(rGrid.GetFieldDrawY());
575 break;
577 pValues[nProp] <<= static_cast<sal_Int32>(rGrid.GetFieldDivisionX());
578 break;
580 pValues[nProp] <<= static_cast<sal_Int32>(rGrid.GetFieldDivisionY());
581 break;
583 pValues[nProp] <<= static_cast<sal_Int32>(rGrid.GetFieldSnapX());
584 break;
586 pValues[nProp] <<= static_cast<sal_Int32>(rGrid.GetFieldSnapY());
587 break;
589 pValues[nProp] <<= rGrid.GetUseGridSnap();
590 break;
592 pValues[nProp] <<= rGrid.GetSynchronize();
593 break;
595 pValues[nProp] <<= rGrid.GetGridVisible();
596 break;
598 pValues[nProp] <<= rGrid.GetEqualGrid();
599 break;
600 }
601 }
602 aGridItem.PutProperties(aNames, aValues);
603}
604
606{
607 *static_cast<ScViewOptions*>(this) = rNew;
611}
612
613/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const PropertyValue * pValues
bool operator==(const ScGridOptions &rOpt) const
Definition: viewopti.cxx:62
void SetDefaults()
Definition: viewopti.cxx:37
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:184
virtual bool operator==(const SfxPoolItem &) const override
Definition: viewopti.cxx:175
virtual ~ScTpViewItem() override
Definition: viewopti.cxx:171
ScViewOptions theOptions
Definition: viewopti.hxx:129
ScTpViewItem(const ScViewOptions &rOpt)
Definition: viewopti.cxx:165
static bool GetBoolFromAny(const css::uno::Any &aAny)
Definition: miscuno.cxx:139
static css::uno::Sequence< OUString > GetLayoutPropertyNames()
Definition: viewopti.cxx:231
ScLinkConfigItem aDisplayItem
Definition: viewopti.hxx:137
static css::uno::Sequence< OUString > GetDisplayPropertyNames()
Definition: viewopti.cxx:247
void SetOptions(const ScViewOptions &rNew)
Definition: viewopti.cxx:605
ScLinkConfigItem aLayoutItem
Definition: viewopti.hxx:136
static css::uno::Sequence< OUString > GetGridPropertyNames()
Definition: viewopti.cxx:260
ScLinkConfigItem aGridItem
Definition: viewopti.hxx:138
void SetGridColor(const Color &rCol, const OUString &rName)
Definition: viewopti.hxx:91
Color aGridCol
Definition: viewopti.hxx:105
void SetOption(ScViewOption eOpt, bool bNew)
Definition: viewopti.hxx:85
void SetDefaults()
Definition: viewopti.cxx:91
std::unique_ptr< SvxGridItem > CreateGridItem() const
Definition: viewopti.cxx:145
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:103
ScGridOptions aGridOpt
Definition: viewopti.hxx:107
Color const & GetGridColor(OUString *pStrName=nullptr) const
Definition: viewopti.cxx:120
bool operator==(const ScViewOptions &rOpt) const
Definition: viewopti.cxx:130
OUString aGridColName
Definition: viewopti.hxx:106
ScVObjMode aModeArr[MAX_TYPE]
Definition: viewopti.hxx:104
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 SCLAYOUTOPT_HORISCROLL
Definition: viewopti.cxx:198
#define SCDISPLAYOPT_OBJECTGRA
Definition: viewopti.cxx:214
#define SCGRIDOPT_OPTION_Y
Definition: viewopti.cxx:225
constexpr OUStringLiteral CFGPATH_DISPLAY
Definition: viewopti.cxx:206
#define SCLAYOUTOPT_COLROWHDR
Definition: viewopti.cxx:197
#define SCLAYOUTOPT_GUIDE
Definition: viewopti.cxx:196
#define SCGRIDOPT_SUBDIV_X
Definition: viewopti.cxx:222
#define SCDISPLAYOPT_FORMULA
Definition: viewopti.cxx:208
#define SCLAYOUTOPT_THEMEDCURSOR
Definition: viewopti.cxx:204
#define SCDISPLAYOPT_DRAWING
Definition: viewopti.cxx:216
#define SCGRIDOPT_OPTION_X
Definition: viewopti.cxx:224
#define SCLAYOUTOPT_GRID_ONCOLOR
Definition: viewopti.cxx:202
#define SCGRIDOPT_SNAPTOGRID
Definition: viewopti.cxx:226
#define SCGRIDOPT_SIZETOGRID
Definition: viewopti.cxx:229
#define SCLAYOUTOPT_OUTLINE
Definition: viewopti.cxx:201
#define SCLAYOUTOPT_SUMMARY
Definition: viewopti.cxx:203
#define SCLAYOUTOPT_PAGEBREAK
Definition: viewopti.cxx:195
#define SCLAYOUTOPT_SHEETTAB
Definition: viewopti.cxx:200
#define SCDISPLAYOPT_ZEROVALUE
Definition: viewopti.cxx:209
#define SCDISPLAYOPT_CHART
Definition: viewopti.cxx:215
constexpr OUStringLiteral CFGPATH_LAYOUT
Definition: viewopti.cxx:191
#define SCLAYOUTOPT_GRIDCOLOR
Definition: viewopti.cxx:194
#define SCGRIDOPT_VISIBLE
Definition: viewopti.cxx:228
#define SCDISPLAYOPT_FORMULAMARK
Definition: viewopti.cxx:211
#define SCGRIDOPT_RESOLU_Y
Definition: viewopti.cxx:221
#define SCDISPLAYOPT_VALUEHI
Definition: viewopti.cxx:212
#define SCLAYOUTOPT_VERTSCROLL
Definition: viewopti.cxx:199
#define SCGRIDOPT_SYNCHRON
Definition: viewopti.cxx:227
constexpr OUStringLiteral CFGPATH_GRID
Definition: viewopti.cxx:218
#define SCGRIDOPT_SUBDIV_Y
Definition: viewopti.cxx:223
#define SCLAYOUTOPT_GRIDLINES
Definition: viewopti.cxx:193
#define SCGRIDOPT_RESOLU_X
Definition: viewopti.cxx:220
IMPL_LINK_NOARG(ScViewCfg, LayoutCommitHdl, ScLinkConfigItem &, void)
Definition: viewopti.cxx:465
#define SCDISPLAYOPT_NOTETAG
Definition: viewopti.cxx:210
#define SCDISPLAYOPT_ANCHOR
Definition: viewopti.cxx:213
#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