1*d1766043SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3*d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*d1766043SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*d1766043SAndrew Rist * distributed with this work for additional information
6*d1766043SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*d1766043SAndrew Rist * "License"); you may not use this file except in compliance
9*d1766043SAndrew Rist * with the License.  You may obtain a copy of the License at
10*d1766043SAndrew Rist *
11*d1766043SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12*d1766043SAndrew Rist *
13*d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*d1766043SAndrew Rist * software distributed under the License is distributed on an
15*d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*d1766043SAndrew Rist * KIND, either express or implied.  See the License for the
17*d1766043SAndrew Rist * specific language governing permissions and limitations
18*d1766043SAndrew Rist * under the License.
19*d1766043SAndrew Rist *
20*d1766043SAndrew Rist *************************************************************/
21*d1766043SAndrew Rist
22*d1766043SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir#ifndef __com_sun_star_sheet_GlobalSheetSettings_idl__
25cdf0e10cSrcweir#define __com_sun_star_sheet_GlobalSheetSettings_idl__
26cdf0e10cSrcweir
27cdf0e10cSrcweir#ifndef __com_sun_star_beans_XPropertySet_idl__
28cdf0e10cSrcweir#include <com/sun/star/beans/XPropertySet.idl>
29cdf0e10cSrcweir#endif
30cdf0e10cSrcweir
31cdf0e10cSrcweir//=============================================================================
32cdf0e10cSrcweir
33cdf0e10cSrcweirmodule com {  module sun {  module star {  module sheet {
34cdf0e10cSrcweir
35cdf0e10cSrcweir//=============================================================================
36cdf0e10cSrcweir
37cdf0e10cSrcweir/** contributes properties to access the settings for all spreadsheets of
38cdf0e10cSrcweir	a spreadsheet document.
39cdf0e10cSrcweir */
40cdf0e10cSrcweirpublished service GlobalSheetSettings
41cdf0e10cSrcweir{
42cdf0e10cSrcweir	//-------------------------------------------------------------------------
43cdf0e10cSrcweir
44cdf0e10cSrcweir//! service com::sun::star::beans::PropertySet;
45cdf0e10cSrcweir	/** provides access to the properties.
46cdf0e10cSrcweir	 */
47cdf0e10cSrcweir	interface com::sun::star::beans::XPropertySet;
48cdf0e10cSrcweir
49cdf0e10cSrcweir	//=========================================================================
50cdf0e10cSrcweir
51cdf0e10cSrcweir	/** specifies whether the cursor is moved after entering into cells.
52cdf0e10cSrcweir	 */
53cdf0e10cSrcweir	[property] boolean MoveSelection;
54cdf0e10cSrcweir
55cdf0e10cSrcweir	//-------------------------------------------------------------------------
56cdf0e10cSrcweir
57cdf0e10cSrcweir	/** contains the direction the cursor moves after entering cells.
58cdf0e10cSrcweir
59cdf0e10cSrcweir		@see com::sun::star::sheet::MoveDirection
60cdf0e10cSrcweir	 */
61cdf0e10cSrcweir	[property] short MoveDirection;
62cdf0e10cSrcweir
63cdf0e10cSrcweir	//-------------------------------------------------------------------------
64cdf0e10cSrcweir
65cdf0e10cSrcweir	/** specifies whether the enter key can be used to start editing a cell.
66cdf0e10cSrcweir	 */
67cdf0e10cSrcweir	[property] boolean EnterEdit;
68cdf0e10cSrcweir
69cdf0e10cSrcweir	//-------------------------------------------------------------------------
70cdf0e10cSrcweir
71cdf0e10cSrcweir	/** specifies whether cell formatting is extended when entering data.
72cdf0e10cSrcweir	 */
73cdf0e10cSrcweir	[property] boolean ExtendFormat;
74cdf0e10cSrcweir
75cdf0e10cSrcweir	//-------------------------------------------------------------------------
76cdf0e10cSrcweir
77cdf0e10cSrcweir	/** specifies whether ranges are highlighted on the sheet when
78cdf0e10cSrcweir		editing a formula.
79cdf0e10cSrcweir	 */
80cdf0e10cSrcweir	[property] boolean RangeFinder;
81cdf0e10cSrcweir
82cdf0e10cSrcweir	//-------------------------------------------------------------------------
83cdf0e10cSrcweir
84cdf0e10cSrcweir	/** specifies whether formula references are extended when cells
85cdf0e10cSrcweir		are inserted below or to the right of them.
86cdf0e10cSrcweir	 */
87cdf0e10cSrcweir	[property] boolean ExpandReferences;
88cdf0e10cSrcweir
89cdf0e10cSrcweir	//-------------------------------------------------------------------------
90cdf0e10cSrcweir
91cdf0e10cSrcweir	/** specifies whether the current selection is highlighted in
92cdf0e10cSrcweir		column and row headers.
93cdf0e10cSrcweir	 */
94cdf0e10cSrcweir	[property] boolean MarkHeader;
95cdf0e10cSrcweir
96cdf0e10cSrcweir	//-------------------------------------------------------------------------
97cdf0e10cSrcweir
98cdf0e10cSrcweir	/** specifies whether the enter key moves the cursor to the column
99cdf0e10cSrcweir		it was in before using the tab key to change columns.
100cdf0e10cSrcweir	 */
101cdf0e10cSrcweir	[property] boolean UseTabCol;
102cdf0e10cSrcweir
103cdf0e10cSrcweir	//-------------------------------------------------------------------------
104cdf0e10cSrcweir
105cdf0e10cSrcweir	/** contains the metric for all spreadsheet documents.
106cdf0e10cSrcweir
107cdf0e10cSrcweir		@see com::sun::star::util::MeasureUnit
108cdf0e10cSrcweir	 */
109cdf0e10cSrcweir	[property] short Metric;
110cdf0e10cSrcweir
111cdf0e10cSrcweir	//-------------------------------------------------------------------------
112cdf0e10cSrcweir
113cdf0e10cSrcweir	/** contains the default scale for new spreadsheet documents
114cdf0e10cSrcweir		(in percent).
115cdf0e10cSrcweir
116cdf0e10cSrcweir		<p>There are several special values:</p>
117cdf0e10cSrcweir		<p>-1 = Optimal width</p>
118cdf0e10cSrcweir		<p>-2 = Show whole page</p>
119cdf0e10cSrcweir		<p>-3 = Page width</p>
120cdf0e10cSrcweir	 */
121cdf0e10cSrcweir	[property] short Scale;
122cdf0e10cSrcweir
123cdf0e10cSrcweir	//-------------------------------------------------------------------------
124cdf0e10cSrcweir
125cdf0e10cSrcweir	/** specifies whether automatic completion of text in a cell is used.
126cdf0e10cSrcweir	 */
127cdf0e10cSrcweir	[property] boolean DoAutoComplete;
128cdf0e10cSrcweir
129cdf0e10cSrcweir	//-------------------------------------------------------------------------
130cdf0e10cSrcweir
131cdf0e10cSrcweir	/** contains the function that is displayed in the status bar.
132cdf0e10cSrcweir
133cdf0e10cSrcweir		@see com::sun::star::sheet::StatusBarFunction
134cdf0e10cSrcweir	 */
135cdf0e10cSrcweir	[property] short StatusBarFunction;
136cdf0e10cSrcweir
137cdf0e10cSrcweir	//-------------------------------------------------------------------------
138cdf0e10cSrcweir
139cdf0e10cSrcweir	/** contains the string lists used for sorting and filling.
140cdf0e10cSrcweir
141cdf0e10cSrcweir		<p>Each string contains the members of a list, separated by
142cdf0e10cSrcweir		commas.</p>
143cdf0e10cSrcweir	 */
144cdf0e10cSrcweir	[property] sequence< string > UserLists;
145cdf0e10cSrcweir
146cdf0e10cSrcweir	//-------------------------------------------------------------------------
147cdf0e10cSrcweir
148cdf0e10cSrcweir	/** specifies the update mode for external linked data.
149cdf0e10cSrcweir
150cdf0e10cSrcweir		<p>0 = always</p>
151cdf0e10cSrcweir		<p>1 = never</p>
152cdf0e10cSrcweir		<p>2 = on demand</p>
153cdf0e10cSrcweir	 */
154cdf0e10cSrcweir	[optional, property] short LinkUpdateMode;
155cdf0e10cSrcweir
156cdf0e10cSrcweir	//-------------------------------------------------------------------------
157cdf0e10cSrcweir
158cdf0e10cSrcweir	/** specifies whether all sheets or only selected sheets are printed.
159cdf0e10cSrcweir	 */
160cdf0e10cSrcweir	[optional, property] boolean PrintAllSheets;
161cdf0e10cSrcweir
162cdf0e10cSrcweir	//-------------------------------------------------------------------------
163cdf0e10cSrcweir
164cdf0e10cSrcweir	/** specifies whether empty pages are printed.
165cdf0e10cSrcweir	 */
166cdf0e10cSrcweir	[optional, property] boolean PrintEmptyPages;
167cdf0e10cSrcweir
168cdf0e10cSrcweir	//-------------------------------------------------------------------------
169cdf0e10cSrcweir
170cdf0e10cSrcweir	/** specifies whether printer metrics are used for display.
171cdf0e10cSrcweir	 */
172cdf0e10cSrcweir	[optional, property] boolean UsePrinterMetrics;
173cdf0e10cSrcweir
174cdf0e10cSrcweir	//-------------------------------------------------------------------------
175cdf0e10cSrcweir
176cdf0e10cSrcweir	/** specifies whether a warning is shown before replacing cells
177cdf0e10cSrcweir		(i.e. when pasting from clipboard).
178cdf0e10cSrcweir	 */
179cdf0e10cSrcweir	[optional, property] boolean ReplaceCellsWarning;
180cdf0e10cSrcweir
181cdf0e10cSrcweir};
182cdf0e10cSrcweir
183cdf0e10cSrcweir//=============================================================================
184cdf0e10cSrcweir
185cdf0e10cSrcweir}; }; }; };
186cdf0e10cSrcweir
187cdf0e10cSrcweir#endif
188cdf0e10cSrcweir
189