diff options
author | Christian Lippka <cl@openoffice.org> | 2001-02-21 11:53:39 +0000 |
---|---|---|
committer | Christian Lippka <cl@openoffice.org> | 2001-02-21 11:53:39 +0000 |
commit | 8fbc5e97cc8780198ab85dd3ef64b052654708ed (patch) | |
tree | b4c3b7f22f4a27af92ab541f493b2db7b136d02b /offapi/com/sun | |
parent | 96edaf84c53fed7bd2ca76e1cc82542de493bfde (diff) |
added MeasureUnit constants
Diffstat (limited to 'offapi/com/sun')
-rw-r--r-- | offapi/com/sun/star/util/MeasureUnit.idl | 129 | ||||
-rw-r--r-- | offapi/com/sun/star/util/makefile.mk | 5 |
2 files changed, 132 insertions, 2 deletions
diff --git a/offapi/com/sun/star/util/MeasureUnit.idl b/offapi/com/sun/star/util/MeasureUnit.idl new file mode 100644 index 000000000000..5e8e3200d549 --- /dev/null +++ b/offapi/com/sun/star/util/MeasureUnit.idl @@ -0,0 +1,129 @@ +/************************************************************************* + * + * $RCSfile: MeasureUnit.idl,v $ + * + * $Revision: 1.1 $ + * + * last change: $Author: cl $ $Date: 2001-02-21 12:53:39 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (the "License"); You may not use this file + * except in compliance with the License. You may obtain a copy of the + * License at http://www.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef __com_sun_star_util_MeasureUnit_idl__ +#define __com_sun_star_util_MeasureUnit_idl__ + + +//============================================================================= + + module com { module sun { module star { module util { + +//============================================================================= + +/** These constants are used to specify a measure.<p> + A component using these constants may not support all units. + */ +constants MeasureUnit +{ + /** all measures for this component are in 100th millimeter */ + const short MM_100TH = 0; + + /** all measures for this component are in 10th millimeter */ + const short MM_10TH = 1; + + /** all measures for this component are in millimeter */ + const short MM = 2; + + /** all measures for this component are in 1000th inch */ + const short INCH_1000TH = 3; + + /** all measures for this component are in 100th inch */ + const short INCH_100TH = 4; + + /** all measures for this component are in 10th inch */ + const short INCH_10TH = 5; + + /** all measures for this component are in inch */ + const short INCH = 6; + + /** all measures for this component are in points */ + const short POINT = 7; + + /** all measures for this component are in twips */ + const short TWIP = 8; + + /** all measures for this component are in centimeters */ + const short CM = 9; + + /** all measures for this component are in meters */ + const short M = 10; + + /** all measures for this component are in kilometers */ + const short KM = 11; + + /** all measures for this component are in pica */ + const short PICA = 12; + + /** all measures for this component are in foot */ + const short FOOT = 13; + + /** all measures for this component are in miles */ + const short MILE = 14; + + /** all measures for this component are in percentage */ + const short PERCENT = 15; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/util/makefile.mk b/offapi/com/sun/star/util/makefile.mk index 0ba94795f3fc..0ff147d76b89 100644 --- a/offapi/com/sun/star/util/makefile.mk +++ b/offapi/com/sun/star/util/makefile.mk @@ -2,9 +2,9 @@ # # $RCSfile: makefile.mk,v $ # -# $Revision: 1.6 $ +# $Revision: 1.7 $ # -# last change: $Author: cp $ $Date: 2000-11-20 10:15:53 $ +# last change: $Author: cl $ $Date: 2001-02-21 12:53:39 $ # # The Contents of this file are made available subject to the terms of # either of the following licenses @@ -73,6 +73,7 @@ PACKAGE=com$/sun$/star$/util # ------------------------------------------------------------------------ IDLFILES=\ + MeasureUnit.idl\ AliasProgrammaticPair.idl \ CellProtection.idl\ ChangesEvent.idl\ |