1d1766043SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4d1766043SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5d1766043SAndrew Rist * distributed with this work for additional information
6d1766043SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the
8d1766043SAndrew Rist * "License"); you may not use this file except in compliance
9d1766043SAndrew Rist * with the License.  You may obtain a copy of the License at
10d1766043SAndrew Rist *
11d1766043SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12d1766043SAndrew Rist *
13d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing,
14d1766043SAndrew Rist * software distributed under the License is distributed on an
15d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16d1766043SAndrew Rist * KIND, either express or implied.  See the License for the
17d1766043SAndrew Rist * specific language governing permissions and limitations
18d1766043SAndrew Rist * under the License.
19d1766043SAndrew Rist *
20d1766043SAndrew Rist *************************************************************/
21d1766043SAndrew Rist
22d1766043SAndrew Rist
23cdf0e10cSrcweir#ifndef __com_sun_star_text_ViewSettings_idl__
24cdf0e10cSrcweir#define __com_sun_star_text_ViewSettings_idl__
25cdf0e10cSrcweir
26cdf0e10cSrcweir#ifndef __com_sun_star_beans_XPropertySet_idl__
27cdf0e10cSrcweir#include <com/sun/star/beans/XPropertySet.idl>
28cdf0e10cSrcweir#endif
29cdf0e10cSrcweir#ifndef __com_sun_star_view_DocumentZoomType_idl__
30cdf0e10cSrcweir#include <com/sun/star/view/DocumentZoomType.idl>
31cdf0e10cSrcweir#endif
32cdf0e10cSrcweir#ifndef __com_sun_star_lang_IllegalArgumentException_idl__
33cdf0e10cSrcweir#include <com/sun/star/lang/IllegalArgumentException.idl>
34cdf0e10cSrcweir#endif
35cdf0e10cSrcweir
36cdf0e10cSrcweir//=============================================================================
37cdf0e10cSrcweir
38cdf0e10cSrcweir module com {  module sun {  module star {  module text {
39cdf0e10cSrcweir
40cdf0e10cSrcweir//=============================================================================
41cdf0e10cSrcweir
42cdf0e10cSrcweir// DocMerge from xml: service com::sun::star::text::ViewSettings
43cdf0e10cSrcweir/** provides access to the settings of the controller of a text document.
44cdf0e10cSrcweir */
45cdf0e10cSrcweirpublished service ViewSettings
46cdf0e10cSrcweir{
47cdf0e10cSrcweir	// DocMerge: empty anyway
48cdf0e10cSrcweir	interface com::sun::star::beans::XPropertySet;
49cdf0e10cSrcweir
50cdf0e10cSrcweir	//-------------------------------------------------------------------------
51cdf0e10cSrcweir
52cdf0e10cSrcweir	// DocMerge from xml: property com::sun::star::text::ViewSettings::ShowAnnotations
53cdf0e10cSrcweir	/** If this property is <TRUE/>, annotations (notes) are visible.
54cdf0e10cSrcweir	 */
55cdf0e10cSrcweir	[property] boolean ShowAnnotations;
56cdf0e10cSrcweir
57cdf0e10cSrcweir	//-------------------------------------------------------------------------
58cdf0e10cSrcweir
59cdf0e10cSrcweir	// DocMerge from xml: property com::sun::star::text::ViewSettings::ShowBreaks
60cdf0e10cSrcweir	/** If this property is <TRUE/>, paragraph line breaks are visible.
61cdf0e10cSrcweir	 */
62cdf0e10cSrcweir	[property] boolean ShowBreaks;
63cdf0e10cSrcweir
64cdf0e10cSrcweir	//-------------------------------------------------------------------------
65cdf0e10cSrcweir
66cdf0e10cSrcweir    // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowFieldCommandsShowDrawings
67cdf0e10cSrcweir	/** If this property is <TRUE/>, shapes are visible.
68cdf0e10cSrcweir	 */
69cdf0e10cSrcweir	[property] boolean ShowDrawings;
70cdf0e10cSrcweir
71cdf0e10cSrcweir	//-------------------------------------------------------------------------
72cdf0e10cSrcweir
73cdf0e10cSrcweir	// DocMerge from xml: property com::sun::star::text::ViewSettings::ShowFieldCommands
74cdf0e10cSrcweir	/** If this property is <TRUE/>, text fields are shown with their commands; otherwise
75cdf0e10cSrcweir		the content is visible.
76cdf0e10cSrcweir	 */
77cdf0e10cSrcweir	[property] boolean ShowFieldCommands;
78cdf0e10cSrcweir
79cdf0e10cSrcweir	//-------------------------------------------------------------------------
80cdf0e10cSrcweir
81cdf0e10cSrcweir	// DocMerge from xml: property com::sun::star::text::ViewSettings::ShowFootnoteBackground
82cdf0e10cSrcweir	/** If this property is <TRUE/>, footnotes symbols are displayed with gray background.
83cdf0e10cSrcweir	 */
84cdf0e10cSrcweir	[property] boolean ShowFootnoteBackground;
85cdf0e10cSrcweir
86cdf0e10cSrcweir	//-------------------------------------------------------------------------
87cdf0e10cSrcweir
88cdf0e10cSrcweir	// DocMerge from xml: property com::sun::star::text::ViewSettings::ShowGraphics
89cdf0e10cSrcweir	/** If this property is <TRUE/>, graphic objects are visible.
90cdf0e10cSrcweir	 */
91cdf0e10cSrcweir	[property] boolean ShowGraphics;
92cdf0e10cSrcweir
93cdf0e10cSrcweir	//-------------------------------------------------------------------------
94cdf0e10cSrcweir
95cdf0e10cSrcweir	// DocMerge from xml: property com::sun::star::text::ViewSettings::ShowHiddenParagraphs
96cdf0e10cSrcweir	/** If this property is <TRUE/>, hidden paragraghs are displayed.
97cdf0e10cSrcweir	 */
98cdf0e10cSrcweir	[property] boolean ShowHiddenParagraphs;
99cdf0e10cSrcweir
100cdf0e10cSrcweir	//-------------------------------------------------------------------------
101cdf0e10cSrcweir
102cdf0e10cSrcweir	// DocMerge from xml: property com::sun::star::text::ViewSettings::ShowHiddenText
103cdf0e10cSrcweir	/** If this property is <TRUE/>, hidden text is displayed.
104cdf0e10cSrcweir	 */
105cdf0e10cSrcweir	[property] boolean ShowHiddenText;
106cdf0e10cSrcweir
107cdf0e10cSrcweir	//-------------------------------------------------------------------------
108cdf0e10cSrcweir
109cdf0e10cSrcweir         /** ShowHoriRuler and ShowVertRuler determine whether a ruler is visible.
110cdf0e10cSrcweir         */
111cdf0e10cSrcweir        [property] boolean ShowRulers;
112cdf0e10cSrcweir
113cdf0e10cSrcweir        //-------------------------------------------------------------------------
114cdf0e10cSrcweir
115cdf0e10cSrcweir        /** If this property is <TRUE/> and the property ShowRulers is <TRUE/>,
116cdf0e10cSrcweir           the horizontal ruler is displayed.
117cdf0e10cSrcweir	 */
118cdf0e10cSrcweir	[property] boolean ShowHoriRuler;
119cdf0e10cSrcweir
120cdf0e10cSrcweir	//-------------------------------------------------------------------------
121cdf0e10cSrcweir
122cdf0e10cSrcweir        /** If this property is <TRUE/> and the property ShowRulers is <TRUE/>,
123cdf0e10cSrcweir           the horizontal scroll bar is displayed.
124cdf0e10cSrcweir	 */
125cdf0e10cSrcweir	[property] boolean ShowHoriScrollBar;
126cdf0e10cSrcweir
127cdf0e10cSrcweir	//-------------------------------------------------------------------------
128cdf0e10cSrcweir
129cdf0e10cSrcweir	// DocMerge from xml: property com::sun::star::text::ViewSettings::ShowIndexMarkBackground
130cdf0e10cSrcweir	/** If this property is <TRUE/>, index marks are displayed with gray background.
131cdf0e10cSrcweir	 */
132cdf0e10cSrcweir	[property] boolean ShowIndexMarkBackground;
133cdf0e10cSrcweir
134cdf0e10cSrcweir	//-------------------------------------------------------------------------
135cdf0e10cSrcweir
136cdf0e10cSrcweir	// DocMerge from xml: property com::sun::star::text::ViewSettings::ShowParaBreaks
137cdf0e10cSrcweir	/** If this property is <TRUE/>, paragraph breaks are visible.
138cdf0e10cSrcweir	 */
139cdf0e10cSrcweir	[property] boolean ShowParaBreaks;
140cdf0e10cSrcweir
141cdf0e10cSrcweir	//-------------------------------------------------------------------------
142cdf0e10cSrcweir
143cdf0e10cSrcweir	// DocMerge from xml: property com::sun::star::text::ViewSettings::ShowProtectedSpaces
144cdf0e10cSrcweir	/** If this property is <TRUE/>, protected spaces (hard spaces) are displayed with gray
145cdf0e10cSrcweir		background.
146cdf0e10cSrcweir	 */
147cdf0e10cSrcweir	[property] boolean ShowProtectedSpaces;
148cdf0e10cSrcweir
149cdf0e10cSrcweir	//-------------------------------------------------------------------------
150cdf0e10cSrcweir
151cdf0e10cSrcweir	// DocMerge from xml: property com::sun::star::text::ViewSettings::ShowSoftHyphens
152cdf0e10cSrcweir	/** If this property is <TRUE/>, soft hyphens are displayed with gray background.
153cdf0e10cSrcweir	 */
154cdf0e10cSrcweir	[property] boolean ShowSoftHyphens;
155cdf0e10cSrcweir
156cdf0e10cSrcweir	//-------------------------------------------------------------------------
157cdf0e10cSrcweir
158cdf0e10cSrcweir	// DocMerge from xml: property com::sun::star::text::ViewSettings::ShowSpaces
159cdf0e10cSrcweir	/** If this property is <TRUE/>, spaces are displayed with dots.
160cdf0e10cSrcweir	 */
161cdf0e10cSrcweir	[property] boolean ShowSpaces;
162cdf0e10cSrcweir
163cdf0e10cSrcweir	//-------------------------------------------------------------------------
164cdf0e10cSrcweir
165cdf0e10cSrcweir	// DocMerge from xml: property com::sun::star::text::ViewSettings::ShowTableBoundaries
166cdf0e10cSrcweir	/** If this property is <TRUE/>, table boundaries are displayed.
167cdf0e10cSrcweir	 */
168cdf0e10cSrcweir	[property] boolean ShowTableBoundaries;
169cdf0e10cSrcweir
170cdf0e10cSrcweir	//-------------------------------------------------------------------------
171cdf0e10cSrcweir
172cdf0e10cSrcweir	// DocMerge from xml: property com::sun::star::text::ViewSettings::ShowTables
173cdf0e10cSrcweir	/** If this property is <TRUE/>, tables are visible.
174cdf0e10cSrcweir	 */
175cdf0e10cSrcweir	[property] boolean ShowTables;
176cdf0e10cSrcweir
177cdf0e10cSrcweir	//-------------------------------------------------------------------------
178cdf0e10cSrcweir
179cdf0e10cSrcweir	// DocMerge from xml: property com::sun::star::text::ViewSettings::ShowTabstops
180cdf0e10cSrcweir	/** If this property is <TRUE/>, tab stops are visible.
181cdf0e10cSrcweir	 */
182cdf0e10cSrcweir	[property] boolean ShowTabstops;
183cdf0e10cSrcweir
184cdf0e10cSrcweir	//-------------------------------------------------------------------------
185cdf0e10cSrcweir
186cdf0e10cSrcweir	// DocMerge from xml: property com::sun::star::text::ViewSettings::ShowTextBoundaries
187cdf0e10cSrcweir	/** If this property is <TRUE/>, text boundaries are displayed.
188cdf0e10cSrcweir	 */
189cdf0e10cSrcweir	[property] boolean ShowTextBoundaries;
190cdf0e10cSrcweir
191cdf0e10cSrcweir	//-------------------------------------------------------------------------
192cdf0e10cSrcweir
193cdf0e10cSrcweir	// DocMerge from xml: property com::sun::star::text::ViewSettings::ShowTextFieldBackground
194cdf0e10cSrcweir	/** If this property is <TRUE/>, text fields are displayed with gray background.
195cdf0e10cSrcweir	 */
196cdf0e10cSrcweir	[property] boolean ShowTextFieldBackground;
197cdf0e10cSrcweir
198cdf0e10cSrcweir	//-------------------------------------------------------------------------
199cdf0e10cSrcweir
200cdf0e10cSrcweir	// DocMerge from xml: property com::sun::star::text::ViewSettings::ShowVertRuler
201cdf0e10cSrcweir	/** If this property is <TRUE/>, the vertical ruler is displayed.
202cdf0e10cSrcweir	 */
203cdf0e10cSrcweir	[property] boolean ShowVertRuler;
204cdf0e10cSrcweir
205cdf0e10cSrcweir	//-------------------------------------------------------------------------
206cdf0e10cSrcweir
207cdf0e10cSrcweir	// DocMerge from xml: property com::sun::star::text::ViewSettings::ShowVertScrollBar
208cdf0e10cSrcweir	/** If this property is <TRUE/>, the vertical scroll bar is displayed.
209cdf0e10cSrcweir	 */
210cdf0e10cSrcweir	[property] boolean ShowVertScrollBar;
211cdf0e10cSrcweir
212cdf0e10cSrcweir	//-------------------------------------------------------------------------
213cdf0e10cSrcweir
214cdf0e10cSrcweir	// DocMerge from xml: property com::sun::star::text::ViewSettings::SmoothScrolling
215cdf0e10cSrcweir	/** If this property is <TRUE/>, smooth scrolling is active.
216cdf0e10cSrcweir	 */
217cdf0e10cSrcweir	[property] boolean SmoothScrolling;
218cdf0e10cSrcweir
219cdf0e10cSrcweir	//-------------------------------------------------------------------------
220cdf0e10cSrcweir
221cdf0e10cSrcweir	// DocMerge from xml: property com::sun::star::text::ViewSettings::SolidMarkHandles
222cdf0e10cSrcweir	/** If this property is <TRUE/>, handles of drawing objects are visible.
223cdf0e10cSrcweir	 */
224cdf0e10cSrcweir	[property] boolean SolidMarkHandles;
225cdf0e10cSrcweir    //-------------------------------------------------------------------------
226cdf0e10cSrcweir    /** If this property is <TRUE/>, the vertical ruler is aligned to the right side
227cdf0e10cSrcweir     of the view and the vertical scrollbar is on the left.
228cdf0e10cSrcweir	 */
229cdf0e10cSrcweir    [property] boolean IsVertRulerRightAligned;
230cdf0e10cSrcweir
231cdf0e10cSrcweir    //-------------------------------------------------------------------------
232cdf0e10cSrcweir    /** If this property is <TRUE/> the document will be displayed as if it
233cdf0e10cSrcweir        were a HTML document.
234cdf0e10cSrcweir	 */
235cdf0e10cSrcweir    [property] boolean ShowOnlineLayout;
236cdf0e10cSrcweir
237cdf0e10cSrcweir    //-------------------------------------------------------------------------
238cdf0e10cSrcweir    /** This property defines the zoom type for the document.
239cdf0e10cSrcweir
240cdf0e10cSrcweir        @see com::sun::star::view::DocumentZoomType
241cdf0e10cSrcweir     */
242cdf0e10cSrcweir    [property] short ZoomType;
243cdf0e10cSrcweir
244cdf0e10cSrcweir    //-------------------------------------------------------------------------
245cdf0e10cSrcweir    /** Defines the zoom value to use.
246cdf0e10cSrcweir        Valid only if the ZoomType is set to
247cdf0e10cSrcweir        <member scope="com::sun::star::view::DocumentZoomType">BY_VALUE</member>.
248cdf0e10cSrcweir	 */
249cdf0e10cSrcweir    [property] short ZoomValue;
250cdf0e10cSrcweir    //-------------------------------------------------------------------------
251cdf0e10cSrcweir    /** If this property is <TRUE/> hyperlinks in the document are executed (loaded) on
252cdf0e10cSrcweir     mouse click. Otherwise they are handled like normal text.
253cdf0e10cSrcweir         */
254cdf0e10cSrcweir    [optional, property] boolean IsExecuteHyperlinks;
255cdf0e10cSrcweir
256cdf0e10cSrcweir    //-------------------------------------------------------------------------
257cdf0e10cSrcweir    /** Specifies whether to display the grid or not
258cdf0e10cSrcweir
259cdf0e10cSrcweir        @since OOo 2.0
260cdf0e10cSrcweir     */
261cdf0e10cSrcweir    [optional, property] boolean IsRasterVisible;
262cdf0e10cSrcweir
263cdf0e10cSrcweir    //-------------------------------------------------------------------------
264cdf0e10cSrcweir    /** Specifies whether to move frames, drawing elements, and form
265cdf0e10cSrcweir        functions only between grid points.
266cdf0e10cSrcweir
267cdf0e10cSrcweir        @since OOo 2.0
268cdf0e10cSrcweir     */
269cdf0e10cSrcweir    [optional, property] boolean IsSnapToRaster;
270cdf0e10cSrcweir
271cdf0e10cSrcweir    //-------------------------------------------------------------------------
272cdf0e10cSrcweir    /** Specifies the number of intervals between grid points on the X-axis.
273cdf0e10cSrcweir
274cdf0e10cSrcweir        <p>The value must be greater or equal to 0, and the application
275cdf0e10cSrcweir        may enforce an upper bound for the value.</p>
276cdf0e10cSrcweir
277cdf0e10cSrcweir        @since OOo 2.0
278cdf0e10cSrcweir        @throws com::sun::star::lang::IllegalArgumentException
279cdf0e10cSrcweir            if the value is out of bounds.
280cdf0e10cSrcweir     */
281cdf0e10cSrcweir    [optional, property] long RasterSubdivisionX;
282cdf0e10cSrcweir
283cdf0e10cSrcweir    //-------------------------------------------------------------------------
284cdf0e10cSrcweir    /** Specifies the number of intervals between grid points on the Y-axis.
285cdf0e10cSrcweir
286cdf0e10cSrcweir        <p>The value must be greater or equal to 0, and the application
287cdf0e10cSrcweir        may enforce an upper bound for the value.</p>
288cdf0e10cSrcweir
289cdf0e10cSrcweir        @since OOo 2.0
290cdf0e10cSrcweir        @throws com::sun::star::lang::IllegalArgumentException
291cdf0e10cSrcweir            if the value is out of bounds.
292cdf0e10cSrcweir     */
293cdf0e10cSrcweir    [optional, property] long RasterSubdivisionY;
294cdf0e10cSrcweir
295cdf0e10cSrcweir    //-------------------------------------------------------------------------
296cdf0e10cSrcweir    /** Defines the unit of measure for the spacing between grid points
297cdf0e10cSrcweir        on the X-axis.
298cdf0e10cSrcweir
299cdf0e10cSrcweir        <p>The value must be greater than 0. The application
300cdf0e10cSrcweir        may enforce more restricting bounds for the value.</p>
301cdf0e10cSrcweir
302cdf0e10cSrcweir        @since OOo 2.0
303cdf0e10cSrcweir        @throws com::sun::star::lang::IllegalArgumentException
304cdf0e10cSrcweir            if the value is out of bounds.
305cdf0e10cSrcweir     */
306cdf0e10cSrcweir    [optional, property] long RasterResolutionX;
307cdf0e10cSrcweir
308cdf0e10cSrcweir    //-------------------------------------------------------------------------
309cdf0e10cSrcweir    /** Defines the unit of measure for the spacing between grid points
310cdf0e10cSrcweir        on the Y-axis.
311cdf0e10cSrcweir
312cdf0e10cSrcweir        <p>The value must be greater than 0. The application
313cdf0e10cSrcweir        may enforce more restricting bounds for the value.</p>
314cdf0e10cSrcweir
315cdf0e10cSrcweir        @since OOo 2.0
316cdf0e10cSrcweir        @throws com::sun::star::lang::IllegalArgumentException
317cdf0e10cSrcweir            if the value is out of bounds.
318cdf0e10cSrcweir     */
319cdf0e10cSrcweir    [optional, property] long RasterResolutionY;
320cdf0e10cSrcweir
321cdf0e10cSrcweir    //-------------------------------------------------------------------------
322cdf0e10cSrcweir    /** If this property is <TRUE/>, hidden characters are displayed
323cdf0e10cSrcweir
324cdf0e10cSrcweir        @since OOo 3.0
325cdf0e10cSrcweir     */
326cdf0e10cSrcweir    [optional, property] boolean ShowHiddenCharacters;
327cdf0e10cSrcweir    //-------------------------------------------------------------------------
328*ef785786SAriel Constenla-Haile    /** If this property is <TRUE/>, the settings of nonprinting characters are applied.
329cdf0e10cSrcweir
330cdf0e10cSrcweir        <p>This option controls the use of the settings ShowHiddenCharacters,
331cdf0e10cSrcweir        ShowTabstops, ShowSpaces, ShowBreaks and ShowParaBreaks </p>
332cdf0e10cSrcweir
333cdf0e10cSrcweir        @since OOo 3.0
334cdf0e10cSrcweir     */
335cdf0e10cSrcweir    [optional, property] boolean ShowNonprintingCharacters;
336cdf0e10cSrcweir    //-------------------------------------------------------------------------
337cdf0e10cSrcweir    /** metric unit of the horizontal ruler
338cdf0e10cSrcweir
339cdf0e10cSrcweir        <p>Uses values <type scope="com::sun::star::awt">FieldUnit</type></p>
340cdf0e10cSrcweir
341cdf0e10cSrcweir        @since OOo 3.1
342cdf0e10cSrcweir     */
343cdf0e10cSrcweir    [optional, property] long HorizontalRulerMetric;
344cdf0e10cSrcweir    //-------------------------------------------------------------------------
345cdf0e10cSrcweir    /** metric unit of the vertical ruler
346cdf0e10cSrcweir
347cdf0e10cSrcweir        <p>Uses values from <type scope="com::sun::star::awt">FieldUnit</type></p>
348cdf0e10cSrcweir
349cdf0e10cSrcweir        @since OOo 3.1
350cdf0e10cSrcweir     */
351cdf0e10cSrcweir    [optional, property] long VerticalRulerMetric;
352*ef785786SAriel Constenla-Haile    //-------------------------------------------------------------------------
353*ef785786SAriel Constenla-Haile    /** If this property is <TRUE/>, tips for document content are shown,
354*ef785786SAriel Constenla-Haile        typically in a help balloon when the mouse is over the content.
355*ef785786SAriel Constenla-Haile
356*ef785786SAriel Constenla-Haile        @since Apache OpenOffice 3.5
357*ef785786SAriel Constenla-Haile     */
358*ef785786SAriel Constenla-Haile    [optional, property] boolean ShowContentTips;
359cdf0e10cSrcweir};
360cdf0e10cSrcweir
361cdf0e10cSrcweir//=============================================================================
362cdf0e10cSrcweir
363cdf0e10cSrcweir}; }; }; };
364cdf0e10cSrcweir
365cdf0e10cSrcweir#endif
366