xref: /AOO41X/main/offapi/com/sun/star/formula/SymbolDescriptor.idl (revision d1766043198e81d0bcfc626e12893e7b4d7e31ca)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23#ifndef __com_sun_star_formula_Symbol_idl__
24#define __com_sun_star_formula_Symbol_idl__
25
26//=============================================================================
27
28 module com {  module sun {  module star {  module formula {
29
30//=============================================================================
31/** @deprecated draft
32    - nWeight should be changed to float as in FontWeight.idl
33    - nItalic probably needs to have FontItalic extended by the two
34      extra defines REVERSE_* listed in FontSlant.idl
35    - nCharSet should have the CharSet.idl extended by the new defines
36      from rtl/textenc.h
37*/
38published struct SymbolDescriptor
39{
40    /** The name of the symbol.
41    */
42    string sName;
43
44    /** The export name of the symbol.
45    */
46    string sExportName;
47
48    /** Specifies the name of the symbol set to which this symbol belongs.
49    */
50    string sSymbolSet;
51
52    /** Specifies the unicode character of the symbol.
53    */
54    long nCharacter;
55
56    /** Specifies the exact name of the font ("Arial", "Courier", etc.).
57    */
58    string sFontName;
59
60    /** Specifies the character set which is supported by the font.
61
62        @see   <type scope="com::sun::star::awt">CharSet</type>
63    */
64    short nCharSet;
65
66    /** Specifies the general style of the font.
67
68        @see   <type scope="com::sun::star::awt">FontFamily</type>
69    */
70    short nFamily;
71
72    /** Specifies the pitch of the font.
73
74        @see   <type scope="com::sun::star::awt">FontPitch</type>
75    */
76    short nPitch;
77
78    /** Specifies the thickness of the line.
79
80        @see   <type scope="com::sun::star::awt">FontWeight</type>
81
82        The allowed integer values correspond as follows:
83        0 : <member scope="com::sun::star::awt">FontWeight::DONTKNOW</member>
84        1 : <member scope="com::sun::star::awt">FontWeight::THIN</member>
85        2 : <member scope="com::sun::star::awt">FontWeight::ULTRALIGHT</member>
86        3 : <member scope="com::sun::star::awt">FontWeight::LIGHT</member>
87        4 : <member scope="com::sun::star::awt">FontWeight::SEMILIGHT</member>
88        5 : <member scope="com::sun::star::awt">FontWeight::NORMAL</member>
89        7 : <member scope="com::sun::star::awt">FontWeight::SEMIBOLD</member>
90        8 : <member scope="com::sun::star::awt">FontWeight::BOLD</member>
91        9 : <member scope="com::sun::star::awt">FontWeight::ULTRABOLD</member>
92        10 : <member scope="com::sun::star::awt">FontWeight::BLACK</member>
93
94    */
95    short nWeight;
96
97    /** Specifies if the font is italic.
98
99        @see   <type scope="com::sun::star::awt">FontSlant</type>
100
101        The values
102        <member cope"com::sun::star::awt">FontSlant::REVERSE_OBLIQUE</member> and
103        <member scope="com::sun::star::awt">FontSlant::REVERSE_ITALIC</member>
104        may not be used.
105    */
106    short nItalic;
107};
108}; }; }; };
109#endif
110