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