1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
27 #ifndef __com_sun_star_text_ViewSettings_idl__
28 #define __com_sun_star_text_ViewSettings_idl__
30 #ifndef __com_sun_star_beans_XPropertySet_idl__
31 #include
<com
/sun
/star
/beans
/XPropertySet.idl
>
33 #ifndef __com_sun_star_view_DocumentZoomType_idl__
34 #include
<com
/sun
/star
/view
/DocumentZoomType.idl
>
36 #ifndef __com_sun_star_lang_IllegalArgumentException_idl__
37 #include
<com
/sun
/star
/lang
/IllegalArgumentException.idl
>
40 //=============================================================================
42 module com
{ module sun
{ module star
{ module text
{
44 //=============================================================================
46 // DocMerge from xml: service com::sun::star::text::ViewSettings
47 /** provides access to the settings of the controller of a text document.
49 published service ViewSettings
51 // DocMerge: empty anyway
52 interface com
::sun
::star
::beans
::XPropertySet
;
54 //-------------------------------------------------------------------------
56 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowAnnotations
57 /** If this property is <TRUE/>, annotations (notes) are visible.
59 [property
] boolean ShowAnnotations
;
61 //-------------------------------------------------------------------------
63 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowBreaks
64 /** If this property is <TRUE/>, paragraph line breaks are visible.
66 [property
] boolean ShowBreaks
;
68 //-------------------------------------------------------------------------
70 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowFieldCommandsShowDrawings
71 /** If this property is <TRUE/>, shapes are visible.
73 [property
] boolean ShowDrawings
;
75 //-------------------------------------------------------------------------
77 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowFieldCommands
78 /** If this property is <TRUE/>, text fields are shown with their commands; otherwise
79 the content is visible.
81 [property
] boolean ShowFieldCommands
;
83 //-------------------------------------------------------------------------
85 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowFootnoteBackground
86 /** If this property is <TRUE/>, footnotes symbols are displayed with gray background.
88 [property
] boolean ShowFootnoteBackground
;
90 //-------------------------------------------------------------------------
92 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowGraphics
93 /** If this property is <TRUE/>, graphic objects are visible.
95 [property
] boolean ShowGraphics
;
97 //-------------------------------------------------------------------------
99 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowHiddenParagraphs
100 /** If this property is <TRUE/>, hidden paragraghs are displayed.
102 [property
] boolean ShowHiddenParagraphs
;
104 //-------------------------------------------------------------------------
106 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowHiddenText
107 /** If this property is <TRUE/>, hidden text is displayed.
109 [property
] boolean ShowHiddenText
;
111 //-------------------------------------------------------------------------
113 /** ShowHoriRuler and ShowVertRuler determine whether a ruler is visible.
115 [property
] boolean ShowRulers
;
117 //-------------------------------------------------------------------------
119 /** If this property is <TRUE/> and the property ShowRulers is <TRUE/>,
120 the horizontal ruler is displayed.
122 [property
] boolean ShowHoriRuler
;
124 //-------------------------------------------------------------------------
126 /** If this property is <TRUE/> and the property ShowRulers is <TRUE/>,
127 the horizontal scroll bar is displayed.
129 [property
] boolean ShowHoriScrollBar
;
131 //-------------------------------------------------------------------------
133 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowIndexMarkBackground
134 /** If this property is <TRUE/>, index marks are displayed with gray background.
136 [property
] boolean ShowIndexMarkBackground
;
138 //-------------------------------------------------------------------------
140 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowParaBreaks
141 /** If this property is <TRUE/>, paragraph breaks are visible.
143 [property
] boolean ShowParaBreaks
;
145 //-------------------------------------------------------------------------
147 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowProtectedSpaces
148 /** If this property is <TRUE/>, protected spaces (hard spaces) are displayed with gray
151 [property
] boolean ShowProtectedSpaces
;
153 //-------------------------------------------------------------------------
155 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowSoftHyphens
156 /** If this property is <TRUE/>, soft hyphens are displayed with gray background.
158 [property
] boolean ShowSoftHyphens
;
160 //-------------------------------------------------------------------------
162 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowSpaces
163 /** If this property is <TRUE/>, spaces are displayed with dots.
165 [property
] boolean ShowSpaces
;
167 //-------------------------------------------------------------------------
169 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowTableBoundaries
170 /** If this property is <TRUE/>, table boundaries are displayed.
172 [property
] boolean ShowTableBoundaries
;
174 //-------------------------------------------------------------------------
176 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowTables
177 /** If this property is <TRUE/>, tables are visible.
179 [property
] boolean ShowTables
;
181 //-------------------------------------------------------------------------
183 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowTabstops
184 /** If this property is <TRUE/>, tab stops are visible.
186 [property
] boolean ShowTabstops
;
188 //-------------------------------------------------------------------------
190 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowTextBoundaries
191 /** If this property is <TRUE/>, text boundaries are displayed.
193 [property
] boolean ShowTextBoundaries
;
195 //-------------------------------------------------------------------------
197 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowTextFieldBackground
198 /** If this property is <TRUE/>, text fields are displayed with gray background.
200 [property
] boolean ShowTextFieldBackground
;
202 //-------------------------------------------------------------------------
204 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowVertRuler
205 /** If this property is <TRUE/>, the vertical ruler is displayed.
207 [property
] boolean ShowVertRuler
;
209 //-------------------------------------------------------------------------
211 // DocMerge from xml: property com::sun::star::text::ViewSettings::ShowVertScrollBar
212 /** If this property is <TRUE/>, the vertical scroll bar is displayed.
214 [property
] boolean ShowVertScrollBar
;
216 //-------------------------------------------------------------------------
218 // DocMerge from xml: property com::sun::star::text::ViewSettings::SmoothScrolling
219 /** If this property is <TRUE/>, smooth scrolling is active.
221 [property
] boolean SmoothScrolling
;
223 //-------------------------------------------------------------------------
225 // DocMerge from xml: property com::sun::star::text::ViewSettings::SolidMarkHandles
226 /** If this property is <TRUE/>, handles of drawing objects are visible.
228 [property
] boolean SolidMarkHandles
;
229 //-------------------------------------------------------------------------
230 /** If this property is <TRUE/>, the vertical ruler is aligned to the right side
231 of the view and the vertical scrollbar is on the left.
233 [property
] boolean IsVertRulerRightAligned
;
235 //-------------------------------------------------------------------------
236 /** If this property is <TRUE/> the document will be displayed as if it
237 were a HTML document.
239 [property
] boolean ShowOnlineLayout
;
241 //-------------------------------------------------------------------------
242 /** This property defines the zoom type for the document.
244 @see com::sun::star::view::DocumentZoomType
246 [property
] short ZoomType
;
248 //-------------------------------------------------------------------------
249 /** Defines the zoom value to use.
250 Valid only if the ZoomType is set to
251 <member scope="com::sun::star::view::DocumentZoomType">BY_VALUE</member>.
253 [property
] short ZoomValue
;
254 //-------------------------------------------------------------------------
255 /** If this property is <TRUE/> hyperlinks in the document are executed (loaded) on
256 mouse click. Otherwise they are handled like normal text.
258 [optional, property
] boolean IsExecuteHyperlinks
;
260 //-------------------------------------------------------------------------
261 /** Specifies whether to display the grid or not
265 [optional, property
] boolean IsRasterVisible
;
267 //-------------------------------------------------------------------------
268 /** Specifies whether to move frames, drawing elements, and form
269 functions only between grid points.
273 [optional, property
] boolean IsSnapToRaster
;
275 //-------------------------------------------------------------------------
276 /** Specifies the number of intervals between grid points on the X-axis.
278 <p>The value must be greater or equal to 0, and the application
279 may enforce an upper bound for the value.</p>
282 @throws com::sun::star::lang::IllegalArgumentException
283 if the value is out of bounds.
285 [optional, property
] long RasterSubdivisionX
;
287 //-------------------------------------------------------------------------
288 /** Specifies the number of intervals between grid points on the Y-axis.
290 <p>The value must be greater or equal to 0, and the application
291 may enforce an upper bound for the value.</p>
294 @throws com::sun::star::lang::IllegalArgumentException
295 if the value is out of bounds.
297 [optional, property
] long RasterSubdivisionY
;
299 //-------------------------------------------------------------------------
300 /** Defines the unit of measure for the spacing between grid points
303 <p>The value must be greater than 0. The application
304 may enforce more restricting bounds for the value.</p>
307 @throws com::sun::star::lang::IllegalArgumentException
308 if the value is out of bounds.
310 [optional, property
] long RasterResolutionX
;
312 //-------------------------------------------------------------------------
313 /** Defines the unit of measure for the spacing between grid points
316 <p>The value must be greater than 0. The application
317 may enforce more restricting bounds for the value.</p>
320 @throws com::sun::star::lang::IllegalArgumentException
321 if the value is out of bounds.
323 [optional, property
] long RasterResolutionY
;
325 //-------------------------------------------------------------------------
326 /** If this property is <TRUE/>, hidden characters are displayed
330 [optional, property
] boolean ShowHiddenCharacters
;
331 //-------------------------------------------------------------------------
332 /** If this proeperty is <TRUE/>, the settings of nonprinting characters are applied.
334 <p>This option controls the use of the settings ShowHiddenCharacters,
335 ShowTabstops, ShowSpaces, ShowBreaks and ShowParaBreaks </p>
339 [optional, property
] boolean ShowNonprintingCharacters
;
340 //-------------------------------------------------------------------------
341 /** metric unit of the horizontal ruler
343 <p>Uses values <type scope="com::sun::star::awt">FieldUnit</type></p>
347 [optional, property
] long HorizontalRulerMetric
;
348 //-------------------------------------------------------------------------
349 /** metric unit of the vertical ruler
351 <p>Uses values from <type scope="com::sun::star::awt">FieldUnit</type></p>
355 [optional, property
] long VerticalRulerMetric
;
358 //=============================================================================