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