1/************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27#ifndef __com_sun_star_formula_Symbol_idl__ 28#define __com_sun_star_formula_Symbol_idl__ 29 30//============================================================================= 31 32 module com { module sun { module star { module formula { 33 34//============================================================================= 35/** @deprecated draft 36 - nWeight should be changed to float as in FontWeight.idl 37 - nItalic probably needs to have FontItalic extended by the two 38 extra defines REVERSE_* listed in FontSlant.idl 39 - nCharSet should have the CharSet.idl extended by the new defines 40 from rtl/textenc.h 41*/ 42published struct SymbolDescriptor 43{ 44 /** The name of the symbol. 45 */ 46 string sName; 47 48 /** The export name of the symbol. 49 */ 50 string sExportName; 51 52 /** Specifies the name of the symbol set to which this symbol belongs. 53 */ 54 string sSymbolSet; 55 56 /** Specifies the unicode character of the symbol. 57 */ 58 long nCharacter; 59 60 /** Specifies the exact name of the font ("Arial", "Courier", etc.). 61 */ 62 string sFontName; 63 64 /** Specifies the character set which is supported by the font. 65 66 @see <type scope="com::sun::star::awt">CharSet</type> 67 */ 68 short nCharSet; 69 70 /** Specifies the general style of the font. 71 72 @see <type scope="com::sun::star::awt">FontFamily</type> 73 */ 74 short nFamily; 75 76 /** Specifies the pitch of the font. 77 78 @see <type scope="com::sun::star::awt">FontPitch</type> 79 */ 80 short nPitch; 81 82 /** Specifies the thickness of the line. 83 84 @see <type scope="com::sun::star::awt">FontWeight</type> 85 86 The allowed integer values correspond as follows: 87 0 : <member scope="com::sun::star::awt">FontWeight::DONTKNOW</member> 88 1 : <member scope="com::sun::star::awt">FontWeight::THIN</member> 89 2 : <member scope="com::sun::star::awt">FontWeight::ULTRALIGHT</member> 90 3 : <member scope="com::sun::star::awt">FontWeight::LIGHT</member> 91 4 : <member scope="com::sun::star::awt">FontWeight::SEMILIGHT</member> 92 5 : <member scope="com::sun::star::awt">FontWeight::NORMAL</member> 93 7 : <member scope="com::sun::star::awt">FontWeight::SEMIBOLD</member> 94 8 : <member scope="com::sun::star::awt">FontWeight::BOLD</member> 95 9 : <member scope="com::sun::star::awt">FontWeight::ULTRABOLD</member> 96 10 : <member scope="com::sun::star::awt">FontWeight::BLACK</member> 97 98 */ 99 short nWeight; 100 101 /** Specifies if the font is italic. 102 103 @see <type scope="com::sun::star::awt">FontSlant</type> 104 105 The values 106 <member cope"com::sun::star::awt">FontSlant::REVERSE_OBLIQUE</member> and 107 <member scope="com::sun::star::awt">FontSlant::REVERSE_ITALIC</member> 108 may not be used. 109 */ 110 short nItalic; 111}; 112}; }; }; }; 113#endif 114