1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: ViewSettings.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_text_ViewSettings_idl__
31 #define __com_sun_star_text_ViewSettings_idl__
33 #ifndef __com_sun_star_beans_XPropertySet_idl__
34 #include
<com
/sun
/star
/beans
/XPropertySet.idl
>
36 #ifndef __com_sun_star_view_DocumentZoomType_idl__
37 #include
<com
/sun
/star
/view
/DocumentZoomType.idl
>
39 #ifndef __com_sun_star_lang_IllegalArgumentException_idl__
40 #include
<com
/sun
/star
/lang
/IllegalArgumentException.idl
>
43 //=============================================================================
45 module com
{ module sun
{ module star
{ module text
{
47 //=============================================================================
49 // DocMerge from xml: service com::sun::star::text::ViewSettings
50 /** provides access to the settings of the controller of a text document.
52 published service ViewSettings
54 // DocMerge: empty anyway
55 interface com
::sun
::star
::beans
::XPropertySet
;
57 //-------------------------------------------------------------------------
59 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowAnnotations
60 /** If this property is <TRUE/>, annotations (notes) are visible.
62 [property
] boolean ShowAnnotations
;
64 //-------------------------------------------------------------------------
66 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowBreaks
67 /** If this property is <TRUE/>, paragraph line breaks are visible.
69 [property
] boolean ShowBreaks
;
71 //-------------------------------------------------------------------------
73 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowFieldCommandsShowDrawings
74 /** If this property is <TRUE/>, shapes are visible.
76 [property
] boolean ShowDrawings
;
78 //-------------------------------------------------------------------------
80 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowFieldCommands
81 /** If this property is <TRUE/>, text fields are shown with their commands; otherwise
82 the content is visible.
84 [property
] boolean ShowFieldCommands
;
86 //-------------------------------------------------------------------------
88 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowFootnoteBackground
89 /** If this property is <TRUE/>, footnotes symbols are displayed with gray background.
91 [property
] boolean ShowFootnoteBackground
;
93 //-------------------------------------------------------------------------
95 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowGraphics
96 /** If this property is <TRUE/>, graphic objects are visible.
98 [property
] boolean ShowGraphics
;
100 //-------------------------------------------------------------------------
102 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowHiddenParagraphs
103 /** If this property is <TRUE/>, hidden paragraghs are displayed.
105 [property
] boolean ShowHiddenParagraphs
;
107 //-------------------------------------------------------------------------
109 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowHiddenText
110 /** If this property is <TRUE/>, hidden text is displayed.
112 [property
] boolean ShowHiddenText
;
114 //-------------------------------------------------------------------------
116 /** ShowHoriRuler and ShowVertRuler determine whether a ruler is visible.
118 [property
] boolean ShowRulers
;
120 //-------------------------------------------------------------------------
122 /** If this property is <TRUE/> and the property ShowRulers is <TRUE/>,
123 the horizontal ruler is displayed.
125 [property
] boolean ShowHoriRuler
;
127 //-------------------------------------------------------------------------
129 /** If this property is <TRUE/> and the property ShowRulers is <TRUE/>,
130 the horizontal scroll bar is displayed.
132 [property
] boolean ShowHoriScrollBar
;
134 //-------------------------------------------------------------------------
136 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowIndexMarkBackground
137 /** If this property is <TRUE/>, index marks are displayed with gray background.
139 [property
] boolean ShowIndexMarkBackground
;
141 //-------------------------------------------------------------------------
143 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowParaBreaks
144 /** If this property is <TRUE/>, paragraph breaks are visible.
146 [property
] boolean ShowParaBreaks
;
148 //-------------------------------------------------------------------------
150 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowProtectedSpaces
151 /** If this property is <TRUE/>, protected spaces (hard spaces) are displayed with gray
154 [property
] boolean ShowProtectedSpaces
;
156 //-------------------------------------------------------------------------
158 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowSoftHyphens
159 /** If this property is <TRUE/>, soft hyphens are displayed with gray background.
161 [property
] boolean ShowSoftHyphens
;
163 //-------------------------------------------------------------------------
165 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowSpaces
166 /** If this property is <TRUE/>, spaces are displayed with dots.
168 [property
] boolean ShowSpaces
;
170 //-------------------------------------------------------------------------
172 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowTableBoundaries
173 /** If this property is <TRUE/>, table boundaries are displayed.
175 [property
] boolean ShowTableBoundaries
;
177 //-------------------------------------------------------------------------
179 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowTables
180 /** If this property is <TRUE/>, tables are visible.
182 [property
] boolean ShowTables
;
184 //-------------------------------------------------------------------------
186 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowTabstops
187 /** If this property is <TRUE/>, tab stops are visible.
189 [property
] boolean ShowTabstops
;
191 //-------------------------------------------------------------------------
193 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowTextBoundaries
194 /** If this property is <TRUE/>, text boundaries are displayed.
196 [property
] boolean ShowTextBoundaries
;
198 //-------------------------------------------------------------------------
200 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowTextFieldBackground
201 /** If this property is <TRUE/>, text fields are displayed with gray background.
203 [property
] boolean ShowTextFieldBackground
;
205 //-------------------------------------------------------------------------
207 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowVertRuler
208 /** If this property is <TRUE/>, the vertical ruler is displayed.
210 [property
] boolean ShowVertRuler
;
212 //-------------------------------------------------------------------------
214 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowVertScrollBar
215 /** If this property is <TRUE/>, the vertical scroll bar is displayed.
217 [property
] boolean ShowVertScrollBar
;
219 //-------------------------------------------------------------------------
221 // DocMerge from xml: property com::sun::star::text::ViewSettings::SmoothScrolling
222 /** If this property is <TRUE/>, smooth scrolling is active.
224 [property
] boolean SmoothScrolling
;
226 //-------------------------------------------------------------------------
228 // DocMerge from xml: property com::sun::star::text::ViewSettings::SolidMarkHandles
229 /** If this property is <TRUE/>, handles of drawing objects are visible.
231 [property
] boolean SolidMarkHandles
;
232 //-------------------------------------------------------------------------
233 /** If this property is <TRUE/>, the vertical ruler is aligned to the right side
234 of the view and the vertical scrollbar is on the left.
236 [property
] boolean IsVertRulerRightAligned
;
238 //-------------------------------------------------------------------------
239 /** If this property is <TRUE/> the document will be displayed as if it
240 were a HTML document.
242 [property
] boolean ShowOnlineLayout
;
244 //-------------------------------------------------------------------------
245 /** This property defines the zoom type for the document.
247 @see com::sun::star::view::DocumentZoomType
249 [property
] short ZoomType
;
251 //-------------------------------------------------------------------------
252 /** Defines the zoom value to use.
253 Valid only if the ZoomType is set to
254 <member scope="com::sun::star::view::DocumentZoomType">BY_VALUE</member>.
256 [property
] short ZoomValue
;
257 //-------------------------------------------------------------------------
258 /** If this property is <TRUE/> hyperlinks in the document are executed (loaded) on
259 mouse click. Otherwise they are handled like normal text.
261 [optional, property
] boolean IsExecuteHyperlinks
;
263 //-------------------------------------------------------------------------
264 /** Specifies whether to display the grid or not
268 [optional, property
] boolean IsRasterVisible
;
270 //-------------------------------------------------------------------------
271 /** Specifies whether to move frames, drawing elements, and form
272 functions only between grid points.
276 [optional, property
] boolean IsSnapToRaster
;
278 //-------------------------------------------------------------------------
279 /** Specifies the number of intervals between grid points on the X-axis.
281 <p>The value must be greater or equal to 0, and the application
282 may enforce an upper bound for the value.</p>
285 @throws com::sun::star::lang::IllegalArgumentException
286 if the value is out of bounds.
288 [optional, property
] long RasterSubdivisionX
;
290 //-------------------------------------------------------------------------
291 /** Specifies the number of intervals between grid points on the Y-axis.
293 <p>The value must be greater or equal to 0, and the application
294 may enforce an upper bound for the value.</p>
297 @throws com::sun::star::lang::IllegalArgumentException
298 if the value is out of bounds.
300 [optional, property
] long RasterSubdivisionY
;
302 //-------------------------------------------------------------------------
303 /** Defines the unit of measure for the spacing between grid points
306 <p>The value must be greater than 0. The application
307 may enforce more restricting bounds for the value.</p>
310 @throws com::sun::star::lang::IllegalArgumentException
311 if the value is out of bounds.
313 [optional, property
] long RasterResolutionX
;
315 //-------------------------------------------------------------------------
316 /** Defines the unit of measure for the spacing between grid points
319 <p>The value must be greater than 0. The application
320 may enforce more restricting bounds for the value.</p>
323 @throws com::sun::star::lang::IllegalArgumentException
324 if the value is out of bounds.
326 [optional, property
] long RasterResolutionY
;
328 //-------------------------------------------------------------------------
329 /** If this property is <TRUE/>, hidden characters are displayed
333 [optional, property
] boolean ShowHiddenCharacters
;
334 //-------------------------------------------------------------------------
335 /** If this proeperty is <TRUE/>, the settings of nonprinting characters are applied.
337 <p>This option controls the use of the settings ShowHiddenCharacters,
338 ShowTabstops, ShowSpaces, ShowBreaks and ShowParaBreaks </p>
342 [optional, property
] boolean ShowNonprintingCharacters
;
343 //-------------------------------------------------------------------------
344 /** metric unit of the horizontal ruler
346 <p>Uses values <type scope="com::sun::star::awt">FieldUnit</type></p>
350 [optional, property
] long HorizontalRulerMetric
;
351 //-------------------------------------------------------------------------
352 /** metric unit of the vertical ruler
354 <p>Uses values from <type scope="com::sun::star::awt">FieldUnit</type></p>
358 [optional, property
] long VerticalRulerMetric
;
361 //=============================================================================