1*b1cdbd2cSJim Jagielski/************************************************************** 2*b1cdbd2cSJim Jagielski * 3*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one 4*b1cdbd2cSJim Jagielski * or more contributor license agreements. See the NOTICE file 5*b1cdbd2cSJim Jagielski * distributed with this work for additional information 6*b1cdbd2cSJim Jagielski * regarding copyright ownership. The ASF licenses this file 7*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the 8*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance 9*b1cdbd2cSJim Jagielski * with the License. You may obtain a copy of the License at 10*b1cdbd2cSJim Jagielski * 11*b1cdbd2cSJim Jagielski * http://www.apache.org/licenses/LICENSE-2.0 12*b1cdbd2cSJim Jagielski * 13*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing, 14*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an 15*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*b1cdbd2cSJim Jagielski * KIND, either express or implied. See the License for the 17*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations 18*b1cdbd2cSJim Jagielski * under the License. 19*b1cdbd2cSJim Jagielski * 20*b1cdbd2cSJim Jagielski *************************************************************/ 21*b1cdbd2cSJim Jagielski 22*b1cdbd2cSJim Jagielski 23*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_text_TextDocumentSettings_idl__ 24*b1cdbd2cSJim Jagielski#define __com_sun_star_text_TextDocumentSettings_idl__ 25*b1cdbd2cSJim Jagielski 26*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_beans_XPropertySet_idl__ 27*b1cdbd2cSJim Jagielski#include <com/sun/star/beans/XPropertySet.idl> 28*b1cdbd2cSJim Jagielski#endif 29*b1cdbd2cSJim Jagielski 30*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_document_Settings_idl__ 31*b1cdbd2cSJim Jagielski#include <com/sun/star/document/Settings.idl> 32*b1cdbd2cSJim Jagielski#endif 33*b1cdbd2cSJim Jagielski 34*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_text_PrintSettings_idl__ 35*b1cdbd2cSJim Jagielski#include <com/sun/star/text/PrintSettings.idl> 36*b1cdbd2cSJim Jagielski#endif 37*b1cdbd2cSJim Jagielski 38*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_text_PrintPreviewSettings_idl__ 39*b1cdbd2cSJim Jagielski#include <com/sun/star/text/PrintPreviewSettings.idl> 40*b1cdbd2cSJim Jagielski#endif 41*b1cdbd2cSJim Jagielski 42*b1cdbd2cSJim Jagielski//============================================================================= 43*b1cdbd2cSJim Jagielski 44*b1cdbd2cSJim Jagielskimodule com { module sun { module star { module text { 45*b1cdbd2cSJim Jagielski 46*b1cdbd2cSJim Jagielski//============================================================================= 47*b1cdbd2cSJim Jagielski 48*b1cdbd2cSJim Jagielski/** describes properties that apply to the whole text document. 49*b1cdbd2cSJim Jagielski */ 50*b1cdbd2cSJim Jagielskipublished service DocumentSettings 51*b1cdbd2cSJim Jagielski{ 52*b1cdbd2cSJim Jagielski service com::sun::star::document::Settings; 53*b1cdbd2cSJim Jagielski 54*b1cdbd2cSJim Jagielski [optional] service com::sun::star::text::PrintSettings; 55*b1cdbd2cSJim Jagielski 56*b1cdbd2cSJim Jagielski [optional] service com::sun::star::text::PrintPreviewSettings; 57*b1cdbd2cSJim Jagielski 58*b1cdbd2cSJim Jagielski //------------------------------------------------------------------------- 59*b1cdbd2cSJim Jagielski /** gives access to the properties implemented by this service. 60*b1cdbd2cSJim Jagielski */ 61*b1cdbd2cSJim Jagielski interface com::sun::star::beans::XPropertySet; 62*b1cdbd2cSJim Jagielski 63*b1cdbd2cSJim Jagielski //------------------------------------------------------------------------- 64*b1cdbd2cSJim Jagielski 65*b1cdbd2cSJim Jagielski /** specifies if charts in text documents are updated automatically. 66*b1cdbd2cSJim Jagielski 67*b1cdbd2cSJim Jagielski This has no effect if 'FieldAutoUpdate' is <FALSE/>. 68*b1cdbd2cSJim Jagielski */ 69*b1cdbd2cSJim Jagielski [optional, property] boolean ChartAutoUpdate; 70*b1cdbd2cSJim Jagielski 71*b1cdbd2cSJim Jagielski /** specifies if spacing between paragraphs and tables is to be 72*b1cdbd2cSJim Jagielski added. 73*b1cdbd2cSJim Jagielski 74*b1cdbd2cSJim Jagielski <p>If between two paragraphs, two tables, or a paragraph and a 75*b1cdbd2cSJim Jagielski table, you have defined spacing above and below each object, 76*b1cdbd2cSJim Jagielski usually only the larger one of the two spaces is used. If the 77*b1cdbd2cSJim Jagielski spacing between hte objects are to be added this property has 78*b1cdbd2cSJim Jagielski to be <TRUE/>.</p> 79*b1cdbd2cSJim Jagielski */ 80*b1cdbd2cSJim Jagielski [optional, property] boolean AddParaTableSpacing; 81*b1cdbd2cSJim Jagielski 82*b1cdbd2cSJim Jagielski /** specifies if top paragraph spacing is applied to paragraphs 83*b1cdbd2cSJim Jagielski on the first page of text documents. 84*b1cdbd2cSJim Jagielski 85*b1cdbd2cSJim Jagielski <p>If <TRUE/>, the paragraph or table spacing to the top will 86*b1cdbd2cSJim Jagielski also be effective at the beginning of a page or column if the 87*b1cdbd2cSJim Jagielski paragraph or table is positioned on the first page of the 88*b1cdbd2cSJim Jagielski document. The same applies for a page break.</p> 89*b1cdbd2cSJim Jagielski */ 90*b1cdbd2cSJim Jagielski [optional, property] boolean AddParaTableSpacingAtStart; 91*b1cdbd2cSJim Jagielski 92*b1cdbd2cSJim Jagielski /** specifies the alignment of tab stops in text documents. 93*b1cdbd2cSJim Jagielski 94*b1cdbd2cSJim Jagielski <p>If <TRUE/> centered and right-aligned paragraphs containing 95*b1cdbd2cSJim Jagielski tabs are formatted as a whole in the center or aligned to the 96*b1cdbd2cSJim Jagielski right. If <FALSE/>, only the text to the right of the last 97*b1cdbd2cSJim Jagielski tab, for example, is aligned to the right, while the text to 98*b1cdbd2cSJim Jagielski the left remains where it is.</p> 99*b1cdbd2cSJim Jagielski */ 100*b1cdbd2cSJim Jagielski [optional, property] boolean AlignTabStopPosition; 101*b1cdbd2cSJim Jagielski 102*b1cdbd2cSJim Jagielski // ------------------------------------------------------------ 103*b1cdbd2cSJim Jagielski /** specifies if the contents of links in the global document 104*b1cdbd2cSJim Jagielski are saved or not. 105*b1cdbd2cSJim Jagielski 106*b1cdbd2cSJim Jagielski <p>This property applies only for master documents.</p> 107*b1cdbd2cSJim Jagielski 108*b1cdbd2cSJim Jagielski <p><em>Note</em>: This name is a bit misleading, it should be 109*b1cdbd2cSJim Jagielski something like <code>SaveLinkedDocumentContent</code>.</p> 110*b1cdbd2cSJim Jagielski */ 111*b1cdbd2cSJim Jagielski [optional, property] boolean SaveGlobalDocumentLinks; 112*b1cdbd2cSJim Jagielski // ------------------------------------------------------------ 113*b1cdbd2cSJim Jagielski /** specifies if the document has been created as a label document. 114*b1cdbd2cSJim Jagielski 115*b1cdbd2cSJim Jagielski <p>This property indicates that the document contains multiple text frames 116*b1cdbd2cSJim Jagielski and that the content of one frame is duplicated into the other frames 117*b1cdbd2cSJim Jagielski by internally linked text sections.</p> 118*b1cdbd2cSJim Jagielski 119*b1cdbd2cSJim Jagielski */ 120*b1cdbd2cSJim Jagielski [optional, property] boolean IsLabelDocument; 121*b1cdbd2cSJim Jagielski // ------------------------------------------------------------ 122*b1cdbd2cSJim Jagielski /** specifies if the former (till OpenOffice.org 1.1) or the new 123*b1cdbd2cSJim Jagielski line spacing formatting is applied. 124*b1cdbd2cSJim Jagielski 125*b1cdbd2cSJim Jagielski <p>This property controls how a set line spacing at a paragraph 126*b1cdbd2cSJim Jagielski influences the formatting of the text lines and the spacing between 127*b1cdbd2cSJim Jagielski paragraphs. 128*b1cdbd2cSJim Jagielski If <TRUE/>, the formatting till OpenOffice.org 1.1 is 129*b1cdbd2cSJim Jagielski applied. This means, that a proportional line spacing is applied 130*b1cdbd2cSJim Jagielski above and below a text line and that the maximum of the line spacing 131*b1cdbd2cSJim Jagielski value between two paragraph is added respectively reckoned up with the 132*b1cdbd2cSJim Jagielski paragraph spacing (adding or reckoning up is controlled by document 133*b1cdbd2cSJim Jagielski option AddParaTableSpacing). 134*b1cdbd2cSJim Jagielski If <FALSE/> (default for documents since OpenOffice.org 2.0), 135*b1cdbd2cSJim Jagielski a proportional line spacing is only applied below a text line and 136*b1cdbd2cSJim Jagielski it's always added to the paragraph spacing between two paragraphs.</p> 137*b1cdbd2cSJim Jagielski 138*b1cdbd2cSJim Jagielski @since OpenOffice 2.0 139*b1cdbd2cSJim Jagielski */ 140*b1cdbd2cSJim Jagielski [optional, property] boolean UseFormerLineSpacing; 141*b1cdbd2cSJim Jagielski // ------------------------------------------------------------ 142*b1cdbd2cSJim Jagielski /** specifies if paragraph and table spacing is added at the 143*b1cdbd2cSJim Jagielski bottom of table cells 144*b1cdbd2cSJim Jagielski 145*b1cdbd2cSJim Jagielski <p>This property controls, if the spacing of the last paragraph 146*b1cdbd2cSJim Jagielski respectively table of a table cell is added at the bottom of this 147*b1cdbd2cSJim Jagielski table cells 148*b1cdbd2cSJim Jagielski If <TRUE/> (default for documents since OpenOffice.org 2.0), 149*b1cdbd2cSJim Jagielski the spacing of the last paragraph respectively table of a table 150*b1cdbd2cSJim Jagielski cell is added at the bottom of this table cell. 151*b1cdbd2cSJim Jagielski If <FALSE/> (typically for documents till OpenOffice.org 1.1), 152*b1cdbd2cSJim Jagielski the spacing of the last paragraph respectively table of a table 153*b1cdbd2cSJim Jagielski cell isn't added at the bottom of this table cell.</p> 154*b1cdbd2cSJim Jagielski 155*b1cdbd2cSJim Jagielski @since OpenOffice 2.0 156*b1cdbd2cSJim Jagielski */ 157*b1cdbd2cSJim Jagielski [optional, property] boolean AddParaSpacingToTableCells; 158*b1cdbd2cSJim Jagielski // ------------------------------------------------------------ 159*b1cdbd2cSJim Jagielski /** specifies if the former (till OpenOffice.org 1.1) or the new 160*b1cdbd2cSJim Jagielski object positioning is applied. 161*b1cdbd2cSJim Jagielski 162*b1cdbd2cSJim Jagielski <p>This property controls how floating screen objects (Writer 163*b1cdbd2cSJim Jagielski fly frames and drawing objects are positioned. 164*b1cdbd2cSJim Jagielski If <TRUE/>, the object positioning till OpenOffice.org 1.1 is 165*b1cdbd2cSJim Jagielski applied. This means, that the top of a paragraph, at which a 166*b1cdbd2cSJim Jagielski floating screen object orients its vertical position, includes 167*b1cdbd2cSJim Jagielski the lower spacing and the line spacing of the previous paragraph. 168*b1cdbd2cSJim Jagielski If <FALSE/> (default for documents since OpenOffice.org 2.0), 169*b1cdbd2cSJim Jagielski the top of a paragraph, at which a floating screen object orients 170*b1cdbd2cSJim Jagielski its vertical position, doesn't include the lower spacing and the 171*b1cdbd2cSJim Jagielski line spacing of the previous paragraph.</p> 172*b1cdbd2cSJim Jagielski 173*b1cdbd2cSJim Jagielski @since OpenOffice 2.0 174*b1cdbd2cSJim Jagielski */ 175*b1cdbd2cSJim Jagielski [optional, property] boolean UseFormerObjectPositioning; 176*b1cdbd2cSJim Jagielski 177*b1cdbd2cSJim Jagielski // ------------------------------------------------------------ 178*b1cdbd2cSJim Jagielski /** specifies if the text wrap of floating screen objects are 179*b1cdbd2cSJim Jagielski considered in a specified way in the positioning algorithm. 180*b1cdbd2cSJim Jagielski 181*b1cdbd2cSJim Jagielski <p>This property controls how floating screen objects (Writer 182*b1cdbd2cSJim Jagielski fly frames and drawing objects) are positioned. 183*b1cdbd2cSJim Jagielski If <TRUE/>, the object positioning algorithm will consider 184*b1cdbd2cSJim Jagielski the text wrap style, set at the floating screen object. 185*b1cdbd2cSJim Jagielski The attribute <member>BaseFrameProperties::WrapInfluenceOnPosition</member> 186*b1cdbd2cSJim Jagielski specifies how the text wrap is considered. 187*b1cdbd2cSJim Jagielski If <FALSE/> (default value), the former object positioning 188*b1cdbd2cSJim Jagielski algorithm (known from OpenOffice.org 1.1) is applied.</p> 189*b1cdbd2cSJim Jagielski 190*b1cdbd2cSJim Jagielski @since OpenOffice 2.0 191*b1cdbd2cSJim Jagielski */ 192*b1cdbd2cSJim Jagielski [optional, property] boolean ConsiderTextWrapOnObjPos; 193*b1cdbd2cSJim Jagielski 194*b1cdbd2cSJim Jagielski // ------------------------------------------------------------ 195*b1cdbd2cSJim Jagielski /** specifies if Math objects should automatically vertically aligned to 196*b1cdbd2cSJim Jagielski match the baseline of the surrounding text. 197*b1cdbd2cSJim Jagielski 198*b1cdbd2cSJim Jagielski <p>If activated formula object that are anchored 'As Character' will be 199*b1cdbd2cSJim Jagielski vertically aligned to have their baseline match with the one from the text.</p> 200*b1cdbd2cSJim Jagielski 201*b1cdbd2cSJim Jagielski @since OpenOffice 3.4 202*b1cdbd2cSJim Jagielski */ 203*b1cdbd2cSJim Jagielski [optional, property] boolean MathBaselineAlignment; 204*b1cdbd2cSJim Jagielski}; 205*b1cdbd2cSJim Jagielski 206*b1cdbd2cSJim Jagielski//============================================================================= 207*b1cdbd2cSJim Jagielski 208*b1cdbd2cSJim Jagielski}; }; }; }; 209*b1cdbd2cSJim Jagielski 210*b1cdbd2cSJim Jagielski#endif 211