LibreOffice Module sc (master) 1
scextopt.hxx
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#pragma once
20
21#include <memory>
22#include <tools/gen.hxx>
23#include <tools/color.hxx>
24#include "rangelst.hxx"
25
28{
29 OUString maGlobCodeName;
31 sal_uInt32 mnLinkCnt;
33
34 explicit ScExtDocSettings();
35};
36
39{
44};
45
48{
64
65 explicit ScExtTabSettings();
66};
67
69
77{
78public:
79 explicit ScExtDocOptions();
80 ScExtDocOptions( const ScExtDocOptions& rSrc );
82
83 ScExtDocOptions& operator=( const ScExtDocOptions& rSrc );
84
86 bool IsChanged() const;
88 void SetChanged( bool bChanged );
89
91 const ScExtDocSettings& GetDocSettings() const;
93 ScExtDocSettings& GetDocSettings();
94
96 const ScExtTabSettings* GetTabSettings( SCTAB nTab ) const;
97
102 SCTAB GetLastTab() const;
103
105 ScExtTabSettings& GetOrCreateTabSettings( SCTAB nTab );
106
108 SCTAB GetCodeNameCount() const;
110 OUString GetCodeName( SCTAB nTab ) const;
112 void SetCodeName( SCTAB nTab, const OUString& rCodeName );
113
114private:
115 ::std::unique_ptr< ScExtDocOptionsImpl > mxImpl;
116};
117
118/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Extended options held by an ScDocument containing additional settings for filters.
Definition: scextopt.hxx:77
::std::unique_ptr< ScExtDocOptionsImpl > mxImpl
Definition: scextopt.hxx:115
long Long
#define SC_DLLPUBLIC
Definition: scdllapi.h:27
ScExtPanePos
Enumerates possible positions of panes in split sheets.
Definition: scextopt.hxx:39
@ SCEXT_PANE_BOTTOMLEFT
Bottom, or bottom-left pane.
Definition: scextopt.hxx:42
@ SCEXT_PANE_BOTTOMRIGHT
Bottom-right pane.
Definition: scextopt.hxx:43
@ SCEXT_PANE_TOPLEFT
Single, top, left, or top-left pane.
Definition: scextopt.hxx:40
@ SCEXT_PANE_TOPRIGHT
Right, or top-right pane.
Definition: scextopt.hxx:41
Implementation struct for ScExtDocOptions containing all members.
Definition: scextopt.cxx:126
Extended settings for the document, used in import/export filters.
Definition: scextopt.hxx:28
double mfTabBarWidth
Width of the tabbar, relative to frame window width (0.0 ... 1.0).
Definition: scextopt.hxx:30
sal_uInt32 mnLinkCnt
Recursive counter for loading external documents.
Definition: scextopt.hxx:31
OUString maGlobCodeName
Global codename (VBA module name).
Definition: scextopt.hxx:29
SCTAB mnDisplTab
Index of displayed sheet.
Definition: scextopt.hxx:32
Extended settings for a sheet, used in import/export filters.
Definition: scextopt.hxx:48
Point maSplitPos
Position of split.
Definition: scextopt.hxx:55
bool mbFrozenPanes
true = Frozen panes; false = Normal splits.
Definition: scextopt.hxx:61
ScRange maUsedArea
Used area in the sheet (columns/rows only).
Definition: scextopt.hxx:49
ScAddress maSecondVis
Top-left visible cell in add. panes (column/row only).
Definition: scextopt.hxx:53
Color maGridColor
Grid color.
Definition: scextopt.hxx:57
ScAddress maCursor
The cursor position (column/row only).
Definition: scextopt.hxx:51
bool mbShowGrid
Whether or not to display gridlines.
Definition: scextopt.hxx:63
ScExtPanePos meActivePane
Active (focused) pane.
Definition: scextopt.hxx:56
ScRangeList maSelection
Selected cell ranges (columns/rows only).
Definition: scextopt.hxx:50
ScAddress maFirstVis
Top-left visible cell (column/row only).
Definition: scextopt.hxx:52
tools::Long mnPageZoom
Zoom in percent for pagebreak preview.
Definition: scextopt.hxx:59
bool mbSelected
true = Sheet is selected.
Definition: scextopt.hxx:60
bool mbPageMode
true = Pagebreak mode; false = Normal view mode.
Definition: scextopt.hxx:62
ScAddress maFreezePos
Position of frozen panes (column/row only).
Definition: scextopt.hxx:54
tools::Long mnNormalZoom
Zoom in percent for normal view.
Definition: scextopt.hxx:58
sal_Int16 SCTAB
Definition: types.hxx:22