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: Settings.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_document_Settings_idl__
31 #define __com_sun_star_document_Settings_idl__
33 #ifndef __com_sun_star_beans_XPropertySet_idl__
34 #include
<com
/sun
/star
/beans
/XPropertySet.idl
>
36 #ifndef __com_sun_star_i18n_XForbiddenCharacters_idl__
37 #include
<com
/sun
/star
/i18n
/XForbiddenCharacters.idl
>
40 //=============================================================================
42 module com
{ module sun
{ module star
{ module document
{
44 //=============================================================================
46 /** describes properties that apply to the whole document of any
49 <p>For application specific settings, please refer to the
50 individual services.</p>
52 @see com::sun::star::text::DocumentSettings
53 @see com::sun::star::sheet::DocumentSettings
54 @see com::sun::star::drawing::DocumentSettings
55 @see com::sun::star::presentation::DocumentSettings
57 published service Settings
59 /** gives access to the properties implemented by this service.
61 interface com
::sun
::star
::beans
::XPropertySet
;
63 //-------------------------------------------------------------------------
65 // Note: These settings are global. However there is a note at
66 // every property that shows which application currently makes use
69 // Writer and Draw/Impress and Calc
70 //-------------------------------------------------------------------------
71 /** gives access to the set of forbidden characters.
74 <type scope="com::sun::star::i18n">XForbiddenCharacters</type>
75 interface to allow retreival and modification of the
76 forbidden characters set.
78 [optional, property
] com
::sun
::star
::i18n
::XForbiddenCharacters ForbiddenCharacters
;
81 //-------------------------------------------------------------------------
82 /** specifies the update mode for links when loading text documents.
84 <p>For supported values see the constants group
85 <type>LinkUpdateModes</type>.</p>
87 [optional, property
] short LinkUpdateMode
;
89 // Writer and Draw/Impress and Calc
90 //-------------------------------------------------------------------------
91 /** printer used by the document.
93 [property
] string PrinterName
;
95 // Writer and Draw/Impress and Calc
96 //-------------------------------------------------------------------------
97 /** platform and driver dependent printer setup data.
99 <p>This property serves to capture the current printer setup
100 settings, such as paper tray, printer options, etc. The data
101 can typically be interpreted only by the system that generated
102 it. The PrinterSetup property may be used to save and restore
103 the user's printer settings.</p>
105 [property
] sequence
< byte > PrinterSetup
;
107 // Writer and Draw/Impress and Calc
108 //-------------------------------------------------------------------------
109 /** specifies if kerning is applied to Asian punctuation.
111 <p>Applies only if kerning is enabled.</p>
113 [optional, property
] boolean IsKernAsianPunctuation
;
115 // Writer and Draw/Impress and Calc
116 //-------------------------------------------------------------------------
117 /** specifies the compression (character spacing) type used for
120 @see com::sun::star::text::CharacterCompressionType
122 [optional, property
] short CharacterCompressionType
;
124 // Writer and Draw/Impress and Calc
125 //-------------------------------------------------------------------------
126 /** specifies if the user-specific settings saved within a
127 document should be loaded with the document.
129 [optional, property
] boolean ApplyUserData
;
132 //-------------------------------------------------------------------------
133 /** specifies if a new version is created if a document has
134 been modified and you want to close it.
136 [optional, property
] boolean SaveVersionOnClose
;
138 // Writer and Draw/Impress and Calc
139 //-------------------------------------------------------------------------
140 /** specifies if the document should be updated when the
141 template it was created from changes.
143 <p>Applies only for documents that were created from a template.</p>
145 [optional, property
] boolean UpdateFromTemplate
;
148 //-------------------------------------------------------------------------
149 /** specifies if fields in text documents are updated automatically.
151 [optional, property
] boolean FieldAutoUpdate
;
154 //-------------------------------------------------------------------------
155 /** The name of the globally registered
156 <type scope="com::sun::star::sdb">DataSource</type>
157 from which the current data is taken.
159 <p>The data source can e.g. be used for feeding a form
162 [optional, property
] string CurrentDatabaseDataSource
;
165 //-------------------------------------------------------------------------
166 /** a string value, specifying the name of the object displayed
167 currently (or the SQL statement used).
169 [optional, property
] string CurrentDatabaseCommand
;
172 //-------------------------------------------------------------------------
173 // Note: What is the property DataTableName? Is this Writer-specific?
174 /** determines the interpretation of the property DataTableName.
176 @see com::sun::star::sdb::CommandType
178 [optional, property
] long CurrentDatabaseCommandType
;
181 //-------------------------------------------------------------------------
184 [optional, property
] long DefaultTabStop
;
187 //-------------------------------------------------------------------------
188 /** determines if the document will be printed as a booklet
189 (brochure), i.e., two document pages are put together on one
190 physical page, such that you can fold the print result and get
193 <p>Note, that you have to print in duplex mode, if both,
194 <member>IsPrintBookletFront</member> and
195 <member>IsPrintBookletBack</member> are set to <TRUE/>.</p>
197 [optional, property
] boolean IsPrintBooklet
;
200 //-------------------------------------------------------------------------
201 /** is only effective, if <member>IsPrintBooklet</member> is
202 <TRUE/>. If this property is also <TRUE/>, only the fronts of
203 the pages of your booklet are printed.
205 <p>This is especially useful, if your printer does not supply
208 [optional, property
] boolean IsPrintBookletFront
;
211 //-------------------------------------------------------------------------
212 /** is only effective, if <member>IsPrintBooklet</member> is
213 <TRUE/>. If this property is also <TRUE/>, only the backs of
214 the pages of your booklet are printed.
216 <p>This is especially useful, if your printer does not supply
219 [optional, property
] boolean IsPrintBookletBack
;
222 //-------------------------------------------------------------------------
223 // Note: Define a constant group for that?
226 [optional, property
] long PrintQuality
;
229 //-------------------------------------------------------------------------
230 /** contains the URL that points to a color table (file extension
231 .soc) that will be used for showing a palette in dialogs using
234 [optional, property
] string ColorTableURL
;
237 //-------------------------------------------------------------------------
240 [optional, property
] string DashTableURL
;
243 //-------------------------------------------------------------------------
246 [optional, property
] string LineEndTableURL
;
249 //-------------------------------------------------------------------------
252 [optional, property
] string HatchTableURL
;
255 //-------------------------------------------------------------------------
258 [optional, property
] string GradientTableURL
;
261 //-------------------------------------------------------------------------
264 [optional, property
] string BitmapTableURL
;
267 //-------------------------------------------------------------------------
270 [optional, property
] boolean AutoCalculate
;
272 // Writer, later others
273 //-------------------------------------------------------------------------
274 /** forbid use of printer metrics for layout
276 <p>For supported values see the constants group
277 <type>PrinterIndependentLayout</type>.</p>
279 [optional, property
] short PrinterIndependentLayout
;
281 // Writer, maybe later other applications, too
282 //-------------------------------------------------------------------------
283 /** layout engine should add value of a Font's 'external leading'
284 * attribute to the line spacing.
286 [optional, property
] boolean AddExternalLeading
;
290 //=============================================================================