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 10cdf0e10cSrcweir * 11d1766043SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 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. 19cdf0e10cSrcweir * 20d1766043SAndrew Rist *************************************************************/ 21d1766043SAndrew Rist 22d1766043SAndrew Rist 23cdf0e10cSrcweir#ifndef __com_sun_star_text_ViewSettings_idl__ 24cdf0e10cSrcweir#define __com_sun_star_text_ViewSettings_idl__ 25cdf0e10cSrcweir 26cdf0e10cSrcweir#include <com/sun/star/beans/XPropertySet.idl> 27cdf0e10cSrcweir#include <com/sun/star/view/DocumentZoomType.idl> 28cdf0e10cSrcweir#include <com/sun/star/lang/IllegalArgumentException.idl> 29cdf0e10cSrcweir 30cdf0e10cSrcweirmodule com { module sun { module star { module text { 31cdf0e10cSrcweir 32cdf0e10cSrcweir// DocMerge from xml: service com::sun::star::text::ViewSettings 33cdf0e10cSrcweir/** provides access to the settings of the controller of a text document. 34cdf0e10cSrcweir */ 35cdf0e10cSrcweirpublished service ViewSettings 36cdf0e10cSrcweir{ 37cdf0e10cSrcweir interface com::sun::star::beans::XPropertySet; 38cdf0e10cSrcweir 39cdf0e10cSrcweir /** If this property is <TRUE/>, annotations (notes) are visible. 40cdf0e10cSrcweir */ 41cdf0e10cSrcweir [property] boolean ShowAnnotations; 42cdf0e10cSrcweir 43cdf0e10cSrcweir /** If this property is <TRUE/>, paragraph line breaks are visible. 44cdf0e10cSrcweir */ 45cdf0e10cSrcweir [property] boolean ShowBreaks; 46cdf0e10cSrcweir 47cdf0e10cSrcweir /** If this property is <TRUE/>, shapes are visible. 48cdf0e10cSrcweir */ 49cdf0e10cSrcweir [property] boolean ShowDrawings; 50cdf0e10cSrcweir 51cdf0e10cSrcweir /** If this property is <TRUE/>, text fields are shown with their commands; otherwise 52cdf0e10cSrcweir the content is visible. 53cdf0e10cSrcweir */ 54cdf0e10cSrcweir [property] boolean ShowFieldCommands; 55cdf0e10cSrcweir 56cdf0e10cSrcweir /** If this property is <TRUE/>, footnotes symbols are displayed with gray background. 57cdf0e10cSrcweir */ 58cdf0e10cSrcweir [property] boolean ShowFootnoteBackground; 59cdf0e10cSrcweir 60cdf0e10cSrcweir /** If this property is <TRUE/>, graphic objects are visible. 61cdf0e10cSrcweir */ 62cdf0e10cSrcweir [property] boolean ShowGraphics; 63cdf0e10cSrcweir 64cdf0e10cSrcweir /** If this property is <TRUE/>, hidden paragraghs are displayed. 65cdf0e10cSrcweir */ 66cdf0e10cSrcweir [property] boolean ShowHiddenParagraphs; 67cdf0e10cSrcweir 68cdf0e10cSrcweir /** If this property is <TRUE/>, hidden text is displayed. 69cdf0e10cSrcweir */ 70cdf0e10cSrcweir [property] boolean ShowHiddenText; 71cdf0e10cSrcweir 72cdf0e10cSrcweir /** ShowHoriRuler and ShowVertRuler determine whether a ruler is visible. 73cdf0e10cSrcweir */ 74cdf0e10cSrcweir [property] boolean ShowRulers; 75cdf0e10cSrcweir 76cdf0e10cSrcweir /** If this property is <TRUE/> and the property ShowRulers is <TRUE/>, 77cdf0e10cSrcweir the horizontal ruler is displayed. 78cdf0e10cSrcweir */ 79cdf0e10cSrcweir [property] boolean ShowHoriRuler; 80cdf0e10cSrcweir 81cdf0e10cSrcweir /** If this property is <TRUE/> and the property ShowRulers is <TRUE/>, 82cdf0e10cSrcweir the horizontal scroll bar is displayed. 83cdf0e10cSrcweir */ 84cdf0e10cSrcweir [property] boolean ShowHoriScrollBar; 85cdf0e10cSrcweir 86cdf0e10cSrcweir /** If this property is <TRUE/>, index marks are displayed with gray background. 87cdf0e10cSrcweir */ 88cdf0e10cSrcweir [property] boolean ShowIndexMarkBackground; 89cdf0e10cSrcweir 90cdf0e10cSrcweir /** If this property is <TRUE/>, paragraph breaks are visible. 91cdf0e10cSrcweir */ 92cdf0e10cSrcweir [property] boolean ShowParaBreaks; 93cdf0e10cSrcweir 94cdf0e10cSrcweir /** If this property is <TRUE/>, protected spaces (hard spaces) are displayed with gray 95cdf0e10cSrcweir background. 96cdf0e10cSrcweir */ 97cdf0e10cSrcweir [property] boolean ShowProtectedSpaces; 98cdf0e10cSrcweir 99cdf0e10cSrcweir /** If this property is <TRUE/>, soft hyphens are displayed with gray background. 100cdf0e10cSrcweir */ 101cdf0e10cSrcweir [property] boolean ShowSoftHyphens; 102cdf0e10cSrcweir 103cdf0e10cSrcweir /** If this property is <TRUE/>, spaces are displayed with dots. 104cdf0e10cSrcweir */ 105cdf0e10cSrcweir [property] boolean ShowSpaces; 106cdf0e10cSrcweir 107cdf0e10cSrcweir /** If this property is <TRUE/>, table boundaries are displayed. 108cdf0e10cSrcweir */ 109cdf0e10cSrcweir [property] boolean ShowTableBoundaries; 110cdf0e10cSrcweir 111cdf0e10cSrcweir /** If this property is <TRUE/>, tables are visible. 112cdf0e10cSrcweir */ 113cdf0e10cSrcweir [property] boolean ShowTables; 114cdf0e10cSrcweir 115cdf0e10cSrcweir /** If this property is <TRUE/>, tab stops are visible. 116cdf0e10cSrcweir */ 117cdf0e10cSrcweir [property] boolean ShowTabstops; 118cdf0e10cSrcweir 119cdf0e10cSrcweir /** If this property is <TRUE/>, text boundaries are displayed. 120cdf0e10cSrcweir */ 121cdf0e10cSrcweir [property] boolean ShowTextBoundaries; 122cdf0e10cSrcweir 123cdf0e10cSrcweir /** If this property is <TRUE/>, text fields are displayed with gray background. 124cdf0e10cSrcweir */ 125cdf0e10cSrcweir [property] boolean ShowTextFieldBackground; 126cdf0e10cSrcweir 127cdf0e10cSrcweir /** If this property is <TRUE/>, the vertical ruler is displayed. 128cdf0e10cSrcweir */ 129cdf0e10cSrcweir [property] boolean ShowVertRuler; 130cdf0e10cSrcweir 131cdf0e10cSrcweir /** If this property is <TRUE/>, the vertical scroll bar is displayed. 132cdf0e10cSrcweir */ 133cdf0e10cSrcweir [property] boolean ShowVertScrollBar; 134cdf0e10cSrcweir 135cdf0e10cSrcweir /** If this property is <TRUE/>, smooth scrolling is active. 136cdf0e10cSrcweir */ 137cdf0e10cSrcweir [property] boolean SmoothScrolling; 138cdf0e10cSrcweir 139cdf0e10cSrcweir /** If this property is <TRUE/>, handles of drawing objects are visible. 140cdf0e10cSrcweir */ 141cdf0e10cSrcweir [property] boolean SolidMarkHandles; 142a41e6500SAriel Constenla-Haile 143cdf0e10cSrcweir /** If this property is <TRUE/>, the vertical ruler is aligned to the right side 144cdf0e10cSrcweir of the view and the vertical scrollbar is on the left. 145cdf0e10cSrcweir */ 146cdf0e10cSrcweir [property] boolean IsVertRulerRightAligned; 147cdf0e10cSrcweir 148cdf0e10cSrcweir /** If this property is <TRUE/> the document will be displayed as if it 149cdf0e10cSrcweir were a HTML document. 150cdf0e10cSrcweir */ 151cdf0e10cSrcweir [property] boolean ShowOnlineLayout; 152cdf0e10cSrcweir 153cdf0e10cSrcweir /** This property defines the zoom type for the document. 154cdf0e10cSrcweir 155cdf0e10cSrcweir @see com::sun::star::view::DocumentZoomType 156cdf0e10cSrcweir */ 157cdf0e10cSrcweir [property] short ZoomType; 158cdf0e10cSrcweir 159cdf0e10cSrcweir /** Defines the zoom value to use. 160cdf0e10cSrcweir Valid only if the ZoomType is set to 161cdf0e10cSrcweir <member scope="com::sun::star::view::DocumentZoomType">BY_VALUE</member>. 162cdf0e10cSrcweir */ 163cdf0e10cSrcweir [property] short ZoomValue; 164a41e6500SAriel Constenla-Haile 165cdf0e10cSrcweir /** If this property is <TRUE/> hyperlinks in the document are executed (loaded) on 166cdf0e10cSrcweir mouse click. Otherwise they are handled like normal text. 167cdf0e10cSrcweir */ 168cdf0e10cSrcweir [optional, property] boolean IsExecuteHyperlinks; 169cdf0e10cSrcweir 170cdf0e10cSrcweir /** Specifies whether to display the grid or not 171cdf0e10cSrcweir 172*2a413f17SJürgen Schmidt @since OpenOffice 2.0 173cdf0e10cSrcweir */ 174cdf0e10cSrcweir [optional, property] boolean IsRasterVisible; 175cdf0e10cSrcweir 176cdf0e10cSrcweir /** Specifies whether to move frames, drawing elements, and form 177cdf0e10cSrcweir functions only between grid points. 178cdf0e10cSrcweir 179*2a413f17SJürgen Schmidt @since OpenOffice 2.0 180cdf0e10cSrcweir */ 181cdf0e10cSrcweir [optional, property] boolean IsSnapToRaster; 182cdf0e10cSrcweir 183cdf0e10cSrcweir /** Specifies the number of intervals between grid points on the X-axis. 184cdf0e10cSrcweir 185cdf0e10cSrcweir <p>The value must be greater or equal to 0, and the application 186cdf0e10cSrcweir may enforce an upper bound for the value.</p> 187cdf0e10cSrcweir 188*2a413f17SJürgen Schmidt @since OpenOffice 2.0 189cdf0e10cSrcweir @throws com::sun::star::lang::IllegalArgumentException 190cdf0e10cSrcweir if the value is out of bounds. 191cdf0e10cSrcweir */ 192cdf0e10cSrcweir [optional, property] long RasterSubdivisionX; 193cdf0e10cSrcweir 194cdf0e10cSrcweir /** Specifies the number of intervals between grid points on the Y-axis. 195cdf0e10cSrcweir 196cdf0e10cSrcweir <p>The value must be greater or equal to 0, and the application 197cdf0e10cSrcweir may enforce an upper bound for the value.</p> 198cdf0e10cSrcweir 199*2a413f17SJürgen Schmidt @since OpenOffice 2.0 200cdf0e10cSrcweir @throws com::sun::star::lang::IllegalArgumentException 201cdf0e10cSrcweir if the value is out of bounds. 202cdf0e10cSrcweir */ 203cdf0e10cSrcweir [optional, property] long RasterSubdivisionY; 204cdf0e10cSrcweir 205cdf0e10cSrcweir /** Defines the unit of measure for the spacing between grid points 206cdf0e10cSrcweir on the X-axis. 207cdf0e10cSrcweir 208cdf0e10cSrcweir <p>The value must be greater than 0. The application 209cdf0e10cSrcweir may enforce more restricting bounds for the value.</p> 210cdf0e10cSrcweir 211*2a413f17SJürgen Schmidt @since OpenOffice 2.0 212cdf0e10cSrcweir @throws com::sun::star::lang::IllegalArgumentException 213cdf0e10cSrcweir if the value is out of bounds. 214cdf0e10cSrcweir */ 215cdf0e10cSrcweir [optional, property] long RasterResolutionX; 216cdf0e10cSrcweir 217cdf0e10cSrcweir /** Defines the unit of measure for the spacing between grid points 218cdf0e10cSrcweir on the Y-axis. 219cdf0e10cSrcweir 220cdf0e10cSrcweir <p>The value must be greater than 0. The application 221cdf0e10cSrcweir may enforce more restricting bounds for the value.</p> 222cdf0e10cSrcweir 223*2a413f17SJürgen Schmidt @since OpenOffice 2.0 224cdf0e10cSrcweir @throws com::sun::star::lang::IllegalArgumentException 225cdf0e10cSrcweir if the value is out of bounds. 226cdf0e10cSrcweir */ 227cdf0e10cSrcweir [optional, property] long RasterResolutionY; 228cdf0e10cSrcweir 229cdf0e10cSrcweir /** If this property is <TRUE/>, hidden characters are displayed 230cdf0e10cSrcweir 231*2a413f17SJürgen Schmidt @since OpenOffice 3.0 232cdf0e10cSrcweir */ 233cdf0e10cSrcweir [optional, property] boolean ShowHiddenCharacters; 234a41e6500SAriel Constenla-Haile 235ef785786SAriel Constenla-Haile /** If this property is <TRUE/>, the settings of nonprinting characters are applied. 236cdf0e10cSrcweir 237cdf0e10cSrcweir <p>This option controls the use of the settings ShowHiddenCharacters, 238cdf0e10cSrcweir ShowTabstops, ShowSpaces, ShowBreaks and ShowParaBreaks </p> 239cdf0e10cSrcweir 240*2a413f17SJürgen Schmidt @since OpenOffice 3.0 241cdf0e10cSrcweir */ 242cdf0e10cSrcweir [optional, property] boolean ShowNonprintingCharacters; 243a41e6500SAriel Constenla-Haile 244cdf0e10cSrcweir /** metric unit of the horizontal ruler 245cdf0e10cSrcweir 246cdf0e10cSrcweir <p>Uses values <type scope="com::sun::star::awt">FieldUnit</type></p> 247cdf0e10cSrcweir 248*2a413f17SJürgen Schmidt @since OpenOffice 3.1 249cdf0e10cSrcweir */ 250cdf0e10cSrcweir [optional, property] long HorizontalRulerMetric; 251a41e6500SAriel Constenla-Haile 252cdf0e10cSrcweir /** metric unit of the vertical ruler 253cdf0e10cSrcweir 254cdf0e10cSrcweir <p>Uses values from <type scope="com::sun::star::awt">FieldUnit</type></p> 255cdf0e10cSrcweir 256*2a413f17SJürgen Schmidt @since OpenOffice 3.1 257cdf0e10cSrcweir */ 258cdf0e10cSrcweir [optional, property] long VerticalRulerMetric; 259a41e6500SAriel Constenla-Haile 260ef785786SAriel Constenla-Haile /** If this property is <TRUE/>, tips for document content are shown, 261ef785786SAriel Constenla-Haile typically in a help balloon when the mouse is over the content. 262ef785786SAriel Constenla-Haile 263*2a413f17SJürgen Schmidt @since OpenOffice 4.0 264ef785786SAriel Constenla-Haile */ 265ef785786SAriel Constenla-Haile [optional, property] boolean ShowContentTips; 266cdf0e10cSrcweir 267a41e6500SAriel Constenla-Haile /** If this property is <TRUE/>, and the scroll bar is shown, a tool tip 268a41e6500SAriel Constenla-Haile is displayed while scrolling. 269a41e6500SAriel Constenla-Haile 270*2a413f17SJürgen Schmidt @since OpenOffice 4.0 271a41e6500SAriel Constenla-Haile */ 272a41e6500SAriel Constenla-Haile [optional, property] boolean ShowScrollBarTips; 273a41e6500SAriel Constenla-Haile}; 274cdf0e10cSrcweir 275cdf0e10cSrcweir}; }; }; }; 276cdf0e10cSrcweir 277cdf0e10cSrcweir#endif 278