xref: /AOO41X/main/offapi/com/sun/star/formula/FormulaProperties.idl (revision 96af39f745f380c70aec9fab3a79dc8b37f680ac)
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_formula_FormulaProperties_idl__
24cdf0e10cSrcweir#define __com_sun_star_formula_FormulaProperties_idl__
25cdf0e10cSrcweir
26cdf0e10cSrcweir//=============================================================================
27cdf0e10cSrcweir
28cdf0e10cSrcweir module com {  module sun {  module star {  module formula {
29cdf0e10cSrcweir
30cdf0e10cSrcweir//=============================================================================
31cdf0e10cSrcweir
32cdf0e10cSrcweir/** The formula properties provide access to the properties of a formula
33cdf0e10cSrcweir	in a formula generator
34cdf0e10cSrcweir */
35cdf0e10cSrcweirpublished service FormulaProperties
36cdf0e10cSrcweir{
37cdf0e10cSrcweir	//-------------------------------------------------------------------------
38cdf0e10cSrcweir
39cdf0e10cSrcweir    /** contains the alignment of the formula.
40cdf0e10cSrcweir        @see HorizontalAlignment
41cdf0e10cSrcweir	 */
42cdf0e10cSrcweir    [property] short    Alignment;
43cdf0e10cSrcweir	//-------------------------------------------------------------------------
44cdf0e10cSrcweir
45cdf0e10cSrcweir	/** contains the base font height in point the formula will be
46cdf0e10cSrcweir		formatted in.
47cdf0e10cSrcweir
48cdf0e10cSrcweir		<p> All properties containing relative values are related to this value.
49cdf0e10cSrcweir		</p>
50cdf0e10cSrcweir	 */
51cdf0e10cSrcweir    [property] short    BaseFontHeight;
52cdf0e10cSrcweir	//-------------------------------------------------------------------------
53cdf0e10cSrcweir
54cdf0e10cSrcweir	/** customized name for fixed font.
55cdf0e10cSrcweir	 */
56cdf0e10cSrcweir    [property] string   CustomFontNameFixed;
57cdf0e10cSrcweir	//-------------------------------------------------------------------------
58cdf0e10cSrcweir
59cdf0e10cSrcweir    /** determines if the customized fixed font is italic.
60cdf0e10cSrcweir	 */
61cdf0e10cSrcweir	[property] boolean FontFixedIsItalic;
62cdf0e10cSrcweir	//-------------------------------------------------------------------------
63cdf0e10cSrcweir
64cdf0e10cSrcweir    /** determines if the customized fixed font is bold.
65cdf0e10cSrcweir	 */
66cdf0e10cSrcweir	[property] boolean FontFixedIsBold;
67cdf0e10cSrcweir	//-------------------------------------------------------------------------
68cdf0e10cSrcweir
69cdf0e10cSrcweir    /** customized name for sans serif font
70cdf0e10cSrcweir	 */
71cdf0e10cSrcweir    [property] string   CustomFontNameSans;
72cdf0e10cSrcweir	//-------------------------------------------------------------------------
73cdf0e10cSrcweir
74cdf0e10cSrcweir    /** determines if the customized sans serif font is italic.
75cdf0e10cSrcweir	 */
76cdf0e10cSrcweir	[property] boolean FontSansIsItalic;
77cdf0e10cSrcweir	//-------------------------------------------------------------------------
78cdf0e10cSrcweir
79cdf0e10cSrcweir    /** determines if the customized sans serif font is bold.
80cdf0e10cSrcweir	 */
81cdf0e10cSrcweir	[property] boolean FontSansIsBold;
82cdf0e10cSrcweir	//-------------------------------------------------------------------------
83cdf0e10cSrcweir
84cdf0e10cSrcweir	/** customized name for serif font
85cdf0e10cSrcweir	 */
86cdf0e10cSrcweir    [property] string   CustomFontNameSerif;
87cdf0e10cSrcweir	//-------------------------------------------------------------------------
88cdf0e10cSrcweir
89cdf0e10cSrcweir    /** determines if the customized serif font is italic.
90cdf0e10cSrcweir	 */
91cdf0e10cSrcweir	[property] boolean FontSerifIsItalic;
92cdf0e10cSrcweir	//-------------------------------------------------------------------------
93cdf0e10cSrcweir
94cdf0e10cSrcweir    /** determines if the customized serif font is bold.
95cdf0e10cSrcweir	 */
96cdf0e10cSrcweir	[property] boolean FontSerifIsBold;
97cdf0e10cSrcweir	//-------------------------------------------------------------------------
98cdf0e10cSrcweir
99cdf0e10cSrcweir	/** contains the name of the font that is used to
100cdf0e10cSrcweir		display functions contained in the formula.
101cdf0e10cSrcweir	 */
102cdf0e10cSrcweir    [property] string FontNameFunctions;
103cdf0e10cSrcweir	//-------------------------------------------------------------------------
104cdf0e10cSrcweir
105cdf0e10cSrcweir    /** determines if the font that is used to display functions is italic.
106cdf0e10cSrcweir	 */
107cdf0e10cSrcweir	[property] boolean FontFunctionsIsItalic;
108cdf0e10cSrcweir	//-------------------------------------------------------------------------
109cdf0e10cSrcweir
110cdf0e10cSrcweir    /** determines if the font that is used to display functions is bold.
111cdf0e10cSrcweir	 */
112cdf0e10cSrcweir	[property] boolean FontFunctionsIsBold;
113cdf0e10cSrcweir	//-------------------------------------------------------------------------
114cdf0e10cSrcweir
115cdf0e10cSrcweir	/** contains the name of the font that is used to
116cdf0e10cSrcweir		display numbers contained in the formula.
117cdf0e10cSrcweir	 */
118cdf0e10cSrcweir    [property] string   FontNameNumbers;
119cdf0e10cSrcweir	//-------------------------------------------------------------------------
120cdf0e10cSrcweir
121cdf0e10cSrcweir    /** determines if the font that is used to display numbers is italic.
122cdf0e10cSrcweir	 */
123cdf0e10cSrcweir	[property] boolean FontNumbersIsItalic;
124cdf0e10cSrcweir	//-------------------------------------------------------------------------
125cdf0e10cSrcweir
126cdf0e10cSrcweir    /** determines if the font that is used to display numbers is bold.
127cdf0e10cSrcweir	 */
128cdf0e10cSrcweir	[property] boolean FontNumbersIsBold;
129cdf0e10cSrcweir	//-------------------------------------------------------------------------
130cdf0e10cSrcweir
131cdf0e10cSrcweir	/** contains the name of the font that is used to
132cdf0e10cSrcweir		display text contained in the formula.
133cdf0e10cSrcweir	 */
134cdf0e10cSrcweir    [property] string   FontNameText;
135cdf0e10cSrcweir	//-------------------------------------------------------------------------
136cdf0e10cSrcweir
137cdf0e10cSrcweir    /** determines if the font that is used to display text is italic.
138cdf0e10cSrcweir	 */
139cdf0e10cSrcweir	[property] boolean FontTextIsItalic;
140cdf0e10cSrcweir	//-------------------------------------------------------------------------
141cdf0e10cSrcweir
142cdf0e10cSrcweir    /** determines if the font that is used to display text is bold.
143cdf0e10cSrcweir	 */
144cdf0e10cSrcweir	[property] boolean FontTextIsBold;
145cdf0e10cSrcweir	//-------------------------------------------------------------------------
146cdf0e10cSrcweir
147cdf0e10cSrcweir	/** contains the name of the font that is used to
148cdf0e10cSrcweir		display variables contained in the formula.
149cdf0e10cSrcweir	 */
150cdf0e10cSrcweir    [property] string   FontNameVariables;
151cdf0e10cSrcweir	//-------------------------------------------------------------------------
152cdf0e10cSrcweir
153cdf0e10cSrcweir    /** determines if the font that is used to display variables is italic.
154cdf0e10cSrcweir	 */
155cdf0e10cSrcweir	[property] boolean FontVariablesIsItalic;
156cdf0e10cSrcweir	//-------------------------------------------------------------------------
157cdf0e10cSrcweir
158cdf0e10cSrcweir    /** determines if the font that is used to display variables is bold.
159cdf0e10cSrcweir	 */
160cdf0e10cSrcweir	[property] boolean FontVariablesIsBold;
161cdf0e10cSrcweir	//-------------------------------------------------------------------------
162cdf0e10cSrcweir
163cdf0e10cSrcweir	/** contains the command string of the formula
164cdf0e10cSrcweir	 */
165cdf0e10cSrcweir    [property] string   Formula;
166cdf0e10cSrcweir	//-------------------------------------------------------------------------
167cdf0e10cSrcweir
168cdf0e10cSrcweir    /** decides if all brackets (even those without 'left'/'right'
169cdf0e10cSrcweir        modifier) are scaled.
170cdf0e10cSrcweir	 */
171cdf0e10cSrcweir    [property] boolean  IsScaleAllBrackets;
172cdf0e10cSrcweir	//-------------------------------------------------------------------------
173cdf0e10cSrcweir
174cdf0e10cSrcweir	/** switches into text mode.
175cdf0e10cSrcweir	 */
176cdf0e10cSrcweir    [property] boolean  IsTextMode;
177cdf0e10cSrcweir	//-------------------------------------------------------------------------
178cdf0e10cSrcweir
179cdf0e10cSrcweir	/** contains the relative height of the font for functions.
180cdf0e10cSrcweir
181cdf0e10cSrcweir        The values unit is percent of the
182cdf0e10cSrcweir        <member scope="com::sun::star::formula">FormulaProperties::BaseFontHeight</member>
183cdf0e10cSrcweir	 */
184cdf0e10cSrcweir    [property] short    RelativeFontHeightFunctions;
185cdf0e10cSrcweir	//-------------------------------------------------------------------------
186cdf0e10cSrcweir
187cdf0e10cSrcweir	/** contains the relative height of the font for indices.
188cdf0e10cSrcweir
189cdf0e10cSrcweir        The values unit is percent of the
190cdf0e10cSrcweir        <member scope="com::sun::star::formula">FormulaProperties::BaseFontHeight</member>
191cdf0e10cSrcweir	 */
192cdf0e10cSrcweir    [property] short    RelativeFontHeightIndices;
193cdf0e10cSrcweir	//-------------------------------------------------------------------------
194cdf0e10cSrcweir
195cdf0e10cSrcweir	/** contains the relative height of the font for limits.
196cdf0e10cSrcweir
197cdf0e10cSrcweir        The values unit is percent of the
198cdf0e10cSrcweir        <member scope="com::sun::star::formula">FormulaProperties::BaseFontHeight</member>
199cdf0e10cSrcweir	 */
200cdf0e10cSrcweir    [property] short    RelativeFontHeightLimits;
201cdf0e10cSrcweir	//-------------------------------------------------------------------------
202cdf0e10cSrcweir
203cdf0e10cSrcweir	/** contains the relative height of the font for operators.
204cdf0e10cSrcweir
205cdf0e10cSrcweir        The values unit is percent of the
206cdf0e10cSrcweir        <member scope="com::sun::star::formula">FormulaProperties::BaseFontHeight</member>
207cdf0e10cSrcweir	 */
208cdf0e10cSrcweir    [property] short    RelativeFontHeightOperators;
209cdf0e10cSrcweir	//-------------------------------------------------------------------------
210cdf0e10cSrcweir
211cdf0e10cSrcweir	/** contains the relative height of the font for text.
212cdf0e10cSrcweir
213cdf0e10cSrcweir        The values unit is percent of the
214cdf0e10cSrcweir        <member scope="com::sun::star::formula">FormulaProperties::BaseFontHeight</member>
215cdf0e10cSrcweir	 */
216cdf0e10cSrcweir    [property] short    RelativeFontHeightText;
217cdf0e10cSrcweir	//-------------------------------------------------------------------------
218cdf0e10cSrcweir
219cdf0e10cSrcweir	/** contains the relative distance of brackets.
220cdf0e10cSrcweir	 */
221cdf0e10cSrcweir    [property] short    RelativeBracketDistance;
222cdf0e10cSrcweir	//-------------------------------------------------------------------------
223cdf0e10cSrcweir
224cdf0e10cSrcweir	/** contains the relative excess size of brackets.
225cdf0e10cSrcweir	 */
226cdf0e10cSrcweir    [property] short    RelativeBracketExcessSize;
227cdf0e10cSrcweir	//-------------------------------------------------------------------------
228cdf0e10cSrcweir
229cdf0e10cSrcweir	/** contains the relative excess length of a fraction bar.
230cdf0e10cSrcweir	 */
231cdf0e10cSrcweir    [property] short    RelativeFractionBarExcessLength;
232cdf0e10cSrcweir	//-------------------------------------------------------------------------
233cdf0e10cSrcweir
234cdf0e10cSrcweir	/** contains the relative line weight of a fraction bar.
235cdf0e10cSrcweir	 */
236cdf0e10cSrcweir    [property] short    RelativeFractionBarLineWeight;
237cdf0e10cSrcweir	//-------------------------------------------------------------------------
238cdf0e10cSrcweir
239cdf0e10cSrcweir	/** contains the relative depth of the denominator of a fraction
240cdf0e10cSrcweir	 */
241cdf0e10cSrcweir    [property] short    RelativeFractionDenominatorDepth;
242cdf0e10cSrcweir	//-------------------------------------------------------------------------
243cdf0e10cSrcweir
244cdf0e10cSrcweir	/** contains the relative height of the numerator of a fraction.
245cdf0e10cSrcweir	 */
246cdf0e10cSrcweir    [property] short    RelativeFractionNumeratorHeight;
247cdf0e10cSrcweir	//-------------------------------------------------------------------------
248cdf0e10cSrcweir
249cdf0e10cSrcweir	/** contains the relative superscript of indices.
250cdf0e10cSrcweir	 */
251cdf0e10cSrcweir    [property] short    RelativeIndexSubscript;
252cdf0e10cSrcweir	//-------------------------------------------------------------------------
253cdf0e10cSrcweir
254cdf0e10cSrcweir	/** contains the relative subscript of indices.
255cdf0e10cSrcweir	 */
256cdf0e10cSrcweir    [property] short    RelativeIndexSuperscript;
257cdf0e10cSrcweir	//-------------------------------------------------------------------------
258cdf0e10cSrcweir
259cdf0e10cSrcweir	/** contains the relative line spacing.
260cdf0e10cSrcweir	 */
261cdf0e10cSrcweir    [property] short    RelativeLineSpacing;
262cdf0e10cSrcweir	//-------------------------------------------------------------------------
263cdf0e10cSrcweir
264cdf0e10cSrcweir	/** contains the relative distance of lower limits.
265cdf0e10cSrcweir	 */
266cdf0e10cSrcweir    [property] short    RelativeLowerLimitDistance;
267cdf0e10cSrcweir	//-------------------------------------------------------------------------
268cdf0e10cSrcweir
269cdf0e10cSrcweir	/** contains the relative column spacing of matrices.
270cdf0e10cSrcweir	 */
271cdf0e10cSrcweir    [property] short    RelativeMatrixColumnSpacing;
272cdf0e10cSrcweir	//-------------------------------------------------------------------------
273cdf0e10cSrcweir
274cdf0e10cSrcweir	/** contains the relative line spacing of matrices.
275cdf0e10cSrcweir	 */
276cdf0e10cSrcweir    [property] short    RelativeMatrixLineSpacing;
277cdf0e10cSrcweir	//-------------------------------------------------------------------------
278cdf0e10cSrcweir
279cdf0e10cSrcweir	/** contains the relative excess of operators.
280cdf0e10cSrcweir	 */
281cdf0e10cSrcweir    [property] short    RelativeOperatorExcessSize;
282cdf0e10cSrcweir	//-------------------------------------------------------------------------
283cdf0e10cSrcweir
284cdf0e10cSrcweir	/** contains the relative spacing of operators.
285cdf0e10cSrcweir	 */
286cdf0e10cSrcweir    [property] short    RelativeOperatorSpacing;
287cdf0e10cSrcweir	//-------------------------------------------------------------------------
288cdf0e10cSrcweir
289cdf0e10cSrcweir	/** contains the relative root spacing
290cdf0e10cSrcweir	 */
291cdf0e10cSrcweir    [property] short    RelativeRootSpacing;
292cdf0e10cSrcweir	//-------------------------------------------------------------------------
293cdf0e10cSrcweir
294cdf0e10cSrcweir	/** contains the relative scaling of the bracket excess.
295cdf0e10cSrcweir	 */
296cdf0e10cSrcweir    [property] short    RelativeScaleBracketExcessSize;
297cdf0e10cSrcweir	//-------------------------------------------------------------------------
298cdf0e10cSrcweir
299cdf0e10cSrcweir	/** contains the relative spacing.
300cdf0e10cSrcweir	 */
301cdf0e10cSrcweir    [property] short    RelativeSpacing;
302cdf0e10cSrcweir	//-------------------------------------------------------------------------
303cdf0e10cSrcweir
304cdf0e10cSrcweir	/** contains the relative minimum height of the formula.
305cdf0e10cSrcweir	 */
306cdf0e10cSrcweir    [property] short    RelativeSymbolMinimumHeight;
307cdf0e10cSrcweir	//-------------------------------------------------------------------------
308cdf0e10cSrcweir
309cdf0e10cSrcweir	/** contains the relative primary height of symbols.
310cdf0e10cSrcweir	 */
311cdf0e10cSrcweir    [property] short    RelativeSymbolPrimaryHeight;
312cdf0e10cSrcweir	//-------------------------------------------------------------------------
313cdf0e10cSrcweir
314cdf0e10cSrcweir	/** contains the relative distance of upper limits
315cdf0e10cSrcweir	 */
316cdf0e10cSrcweir    [property] short    RelativeUpperLimitDistance;
317cdf0e10cSrcweir	//-------------------------------------------------------------------------
318cdf0e10cSrcweir
319cdf0e10cSrcweir	/** contains the metric value of the top margin of the formula.
320cdf0e10cSrcweir	 */
321cdf0e10cSrcweir    [property] short    TopMargin;
322cdf0e10cSrcweir	//-------------------------------------------------------------------------
323cdf0e10cSrcweir
324cdf0e10cSrcweir	/** contains the metric value of the bottom margin of the formula.
325cdf0e10cSrcweir	 */
326cdf0e10cSrcweir    [property] short    BottomMargin;
327cdf0e10cSrcweir	//-------------------------------------------------------------------------
328cdf0e10cSrcweir
329cdf0e10cSrcweir	/** contains the metric value of the left margin of the formula.
330cdf0e10cSrcweir	 */
331cdf0e10cSrcweir    [property] short    LeftMargin;
332cdf0e10cSrcweir	//-------------------------------------------------------------------------
333cdf0e10cSrcweir
334cdf0e10cSrcweir	/** contains the metric value of the right margin of the formula.
335cdf0e10cSrcweir	 */
336cdf0e10cSrcweir    [property] short    RightMargin;
337cdf0e10cSrcweir
338cdf0e10cSrcweir    //-------------------------------------------------------------------------
339cdf0e10cSrcweir
340cdf0e10cSrcweir    /** contains the baselines offset in respect to the top of the formula rectangle
341cdf0e10cSrcweir
342*96af39f7SJürgen Schmidt    @since OpenOffice 3.4
343cdf0e10cSrcweir     */
344cdf0e10cSrcweir    [property, optional] short    BaseLine;
345cdf0e10cSrcweir};
346cdf0e10cSrcweir
347cdf0e10cSrcweir//=============================================================================
348cdf0e10cSrcweir
349cdf0e10cSrcweir}; }; }; };
350cdf0e10cSrcweir
351cdf0e10cSrcweir#endif
352