Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / offapi / com / sun / star / text / ViewSettings.idl
blob5461f44ef98b4fe113cc7f691cc85f39947546fa
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef __com_sun_star_text_ViewSettings_idl__
20 #define __com_sun_star_text_ViewSettings_idl__
22 #include <com/sun/star/beans/XPropertySet.idl>
23 #include <com/sun/star/view/DocumentZoomType.idl>
24 #include <com/sun/star/lang/IllegalArgumentException.idl>
26 module com { module sun { module star { module text {
28 /** provides access to the settings of the controller of a text document.
30 published service ViewSettings
32 interface com::sun::star::beans::XPropertySet;
34 /** If this property is `TRUE`, annotations (notes) are visible.
36 [property] boolean ShowAnnotations;
38 /** If this property is `TRUE`, paragraph line breaks are visible.
40 [property] boolean ShowBreaks;
42 /** If this property is `TRUE`, shapes are visible.
44 [property] boolean ShowDrawings;
46 /** If this property is `TRUE`, text fields are shown with their commands; otherwise
47 the content is visible.
49 [property] boolean ShowFieldCommands;
51 /** If this property is `TRUE`, footnotes symbols are displayed with gray background.
53 [property] boolean ShowFootnoteBackground;
55 /** If this property is `TRUE`, graphic objects are visible.
57 [property] boolean ShowGraphics;
59 /** If this property is `TRUE`, hidden paragraphs are displayed.
61 [property] boolean ShowHiddenParagraphs;
63 /** If this property is `TRUE`, hidden text is displayed.
65 [property] boolean ShowHiddenText;
67 /** ShowHoriRuler and ShowVertRuler determine whether a ruler is visible.
69 [property] boolean ShowRulers;
71 /** If this property is `TRUE` and the property ShowRulers is `TRUE`,
72 the horizontal ruler is displayed.
74 [property] boolean ShowHoriRuler;
76 /** If this property is `TRUE` and the property ShowRulers is `TRUE`,
77 the horizontal scroll bar is displayed.
79 [property] boolean ShowHoriScrollBar;
81 /** If this property is `TRUE`, index marks are displayed with gray background.
83 [property] boolean ShowIndexMarkBackground;
85 /** If this property is `TRUE`, paragraph breaks are visible.
87 [property] boolean ShowParaBreaks;
89 /** If this property is `TRUE`, protected spaces (hard spaces) are displayed with gray
90 background.
92 [property] boolean ShowProtectedSpaces;
94 /** If this property is `TRUE`, soft hyphens are displayed with gray background.
96 [property] boolean ShowSoftHyphens;
98 /** If this property is `TRUE`, spaces are displayed with dots.
100 [property] boolean ShowSpaces;
102 /** If this property is `TRUE`, table boundaries are displayed.
104 [property] boolean ShowTableBoundaries;
106 /** If this property is `TRUE`, tables are visible.
108 [property] boolean ShowTables;
110 /** If this property is `TRUE`, tab stops are visible.
112 [property] boolean ShowTabstops;
114 /** If this property is `TRUE`, text boundaries are displayed.
116 [property] boolean ShowTextBoundaries;
118 /** If this property is `TRUE`, text fields are displayed with gray background.
120 [property] boolean ShowTextFieldBackground;
122 /** If this property is `TRUE`, the vertical ruler is displayed.
124 [property] boolean ShowVertRuler;
126 /** If this property is `TRUE`, the vertical scroll bar is displayed.
128 [property] boolean ShowVertScrollBar;
130 /** If this property is `TRUE`, smooth scrolling is active.
132 [property] boolean SmoothScrolling;
134 /** If this property is `TRUE`, the vertical ruler is aligned to the right side
135 of the view and the vertical scrollbar is on the left.
137 [property] boolean IsVertRulerRightAligned;
139 /** If this property is `TRUE` the document will be displayed as if it
140 were a HTML document.
142 [property] boolean ShowOnlineLayout;
144 /** This property defines the zoom type for the document.
146 @see com::sun::star::view::DocumentZoomType
148 [property] short ZoomType;
150 /** Defines the zoom value to use.
151 Valid only if the ZoomType is set to
152 com::sun::star::view::DocumentZoomType::BY_VALUE.
154 [property] short ZoomValue;
155 /** If this property is `TRUE` hyperlinks in the document are executed (loaded) on
156 mouse click. Otherwise they are handled like normal text.
158 [optional, property] boolean IsExecuteHyperlinks;
160 /** Specifies whether to display the grid or not
162 @since OOo 2.0
164 [optional, property] boolean IsRasterVisible;
166 /** Specifies whether to move frames, drawing elements, and form
167 functions only between grid points.
169 @since OOo 2.0
171 [optional, property] boolean IsSnapToRaster;
173 /** Specifies the number of intervals between grid points on the X-axis.
175 <p>The value must be greater or equal to 0, and the application
176 may enforce an upper bound for the value.</p>
178 @since OOo 2.0
179 @throws com::sun::star::lang::IllegalArgumentException
180 if the value is out of bounds.
182 [optional, property] long RasterSubdivisionX;
184 /** Specifies the number of intervals between grid points on the Y-axis.
186 <p>The value must be greater or equal to 0, and the application
187 may enforce an upper bound for the value.</p>
189 @since OOo 2.0
190 @throws com::sun::star::lang::IllegalArgumentException
191 if the value is out of bounds.
193 [optional, property] long RasterSubdivisionY;
195 /** Defines the unit of measure for the spacing between grid points
196 on the X-axis.
198 <p>The value must be greater than 0. The application
199 may enforce more restricting bounds for the value.</p>
201 @since OOo 2.0
202 @throws com::sun::star::lang::IllegalArgumentException
203 if the value is out of bounds.
205 [optional, property] long RasterResolutionX;
207 /** Defines the unit of measure for the spacing between grid points
208 on the Y-axis.
210 <p>The value must be greater than 0. The application
211 may enforce more restricting bounds for the value.</p>
213 @since OOo 2.0
214 @throws com::sun::star::lang::IllegalArgumentException
215 if the value is out of bounds.
217 [optional, property] long RasterResolutionY;
219 /** If this property is `TRUE`, hidden characters are displayed
221 @since OOo 3.0
223 [optional, property] boolean ShowHiddenCharacters;
224 /** If this property is `TRUE`, the settings of non-printing characters are applied.
226 <p>This option controls the use of the settings ShowHiddenCharacters,
227 ShowTabstops, ShowSpaces, ShowBreaks and ShowParaBreaks </p>
229 @since OOo 3.0
231 [optional, property] boolean ShowNonprintingCharacters;
233 /** metric unit of the horizontal ruler
235 <p>Uses values com::sun::star::awt::FieldUnit</p>
237 @since OOo 3.1
239 [optional, property] long HorizontalRulerMetric;
241 /** metric unit of the vertical ruler
243 <p>Uses values from com::sun::star::awt::FieldUnit</p>
245 @since OOo 3.1
247 [optional, property] long VerticalRulerMetric;
249 /** If this property is `TRUE`, tips for document content are shown,
250 typically in a help balloon when the mouse is over the content.
252 @since LibreOffice 4.1
254 [optional, property] boolean ShowContentTips;
256 /** If this property is `TRUE`, and the scroll bar is shown, a tool tip
257 is displayed while scrolling.
259 @since LibreOffice 4.2
261 [optional, property] boolean ShowScrollBarTips;
263 /** If this property is `TRUE`, whitespaces around pages are hidden.
265 @since LibreOffice 5.1
267 [optional, property] boolean HideWhitespace;
270 }; }; }; };
272 #endif
274 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */