diff options
author | Christian Lippka <cl@openoffice.org> | 2001-03-14 16:14:22 +0000 |
---|---|---|
committer | Christian Lippka <cl@openoffice.org> | 2001-03-14 16:14:22 +0000 |
commit | fb15c6204269e2242ac2159bee0dfe480b008ec0 (patch) | |
tree | 41c1d269a712ed777391ddbe7b0dd48a2e0f6f9b /offapi/com/sun | |
parent | 964a37e741ff79433e67a6cc24f5879a6fc9071f (diff) |
new api for image maps
Diffstat (limited to 'offapi/com/sun')
-rw-r--r-- | offapi/com/sun/star/image/ImageMap.idl | 98 | ||||
-rw-r--r-- | offapi/com/sun/star/image/ImageMapCircleObject.idl | 99 | ||||
-rw-r--r-- | offapi/com/sun/star/image/ImageMapObject.idl | 118 | ||||
-rw-r--r-- | offapi/com/sun/star/image/ImageMapPolygonObject.idl | 97 | ||||
-rw-r--r-- | offapi/com/sun/star/image/ImageMapRectangleObject.idl | 96 | ||||
-rw-r--r-- | offapi/com/sun/star/image/makefile.mk | 85 |
6 files changed, 593 insertions, 0 deletions
diff --git a/offapi/com/sun/star/image/ImageMap.idl b/offapi/com/sun/star/image/ImageMap.idl new file mode 100644 index 000000000..d86551d6c --- /dev/null +++ b/offapi/com/sun/star/image/ImageMap.idl @@ -0,0 +1,98 @@ +/************************************************************************* + * + * $RCSfile: ImageMap.idl,v $ + * + * $Revision: 1.1 $ + * + * last change: $Author: cl $ $Date: 2001-03-14 17:14:22 $ + * + * 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_image_ImageMap_idl__ +#define __com_sun_star_image_ImageMap_idl__ + +#ifndef __com_sun_star_container_XNamed_idl__ +#include <com/sun/star/container/XNamed.idl> +#endif + +#ifndef __com_sun_star_container_XIndexContainer_idl__ +#include <com/sun/star/container/XIndexContainer.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module image { + +//============================================================================= + +/** This service specifies a html image map. + */ +service ImageMap +{ + /** a ImageMap can optionaly have a name. */ + interface ::com::sun::star::container::XNamed; + + /** this container interface gives access to + the objects inside this image map. + @see ImageMapRectangleObject + @see ImageMapCircleObject + @see ImageMapPolygonObjec + */ + interface ::com::sun::star::container::XIndexContainer; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/image/ImageMapCircleObject.idl b/offapi/com/sun/star/image/ImageMapCircleObject.idl new file mode 100644 index 000000000..cc0bf6829 --- /dev/null +++ b/offapi/com/sun/star/image/ImageMapCircleObject.idl @@ -0,0 +1,99 @@ +/************************************************************************* + * + * $RCSfile: ImageMapCircleObject.idl,v $ + * + * $Revision: 1.1 $ + * + * last change: $Author: cl $ $Date: 2001-03-14 17:14:22 $ + * + * 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_image_ImageMapCircleObject_idl__ +#define __com_sun_star_image_ImageMapCircleObject_idl__ + +#ifndef __com_sun_star_image_ImageMapObject_idl__ +#include <com/sun/star/image/ImageMapObject.idl> +#endif + +#ifndef __com_sun_star_awt_Point_idl__ +#include <com/sun/star/awt/Point.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module image { + +//============================================================================= + +/** this service describes a circular shaped region inside + a html image map. + @see ImageMap + @see ImageMapObject +*/ +service ImageMapCircleObject +{ + /** The basic service for all image map objects. */ + service ImageMapObject; + + /** This is the center point of the circle in pixel */ + [property] com::sun::star::awt::Point Center; + + /** This is the radius of the circle in pixel */ + [property] long Radius; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/image/ImageMapObject.idl b/offapi/com/sun/star/image/ImageMapObject.idl new file mode 100644 index 000000000..9213e4efb --- /dev/null +++ b/offapi/com/sun/star/image/ImageMapObject.idl @@ -0,0 +1,118 @@ +/************************************************************************* + * + * $RCSfile: ImageMapObject.idl,v $ + * + * $Revision: 1.1 $ + * + * last change: $Author: cl $ $Date: 2001-03-14 17:14:22 $ + * + * 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_image_ImageMapObject_idl__ +#define __com_sun_star_image_ImageMapObject_idl__ + +#ifndef __com_sun_star_beans_XPropertySet_idl__ +#include <com/sun/star/beans/XPropertySet.idl> +#endif + +#ifndef __com_sun_star_document_XEventsSupplier_idl__ +#include <com/sun/star/document/XEventsSupplier.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module image { + +//============================================================================= + +/** this is a base service for objects inside a image maps. + @see ImageMap + @see ImageMapRectangleObject + @see ImageMapCircleObject + @see ImageMapPolygonObject +*/ +service ImageMapObject +{ + /** Interface to access the properties of this service. */ + interface ::com::sun::star::beans::XPropertySet; + + /** This interface gives access to the events bound to + this ImageMapObject.<p> + + @see com::sun::star::document::Events + */ + interface com::sun::star::document::XEventsSupplier; + + /** This is the URL for this object */ + [property] string URL; + + /** This is an optional description text for the link. */ + [property] string Description; + + /** This is the target frame */ + [property] string Target; + + /** Optionaly, objects could be named. */ + [property] string Name; + + /** If an object is not active, it is ignored when + the user clicks on the ImageMap. + */ + [property] boolean IsActive; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/image/ImageMapPolygonObject.idl b/offapi/com/sun/star/image/ImageMapPolygonObject.idl new file mode 100644 index 000000000..7f3fedbf9 --- /dev/null +++ b/offapi/com/sun/star/image/ImageMapPolygonObject.idl @@ -0,0 +1,97 @@ +/************************************************************************* + * + * $RCSfile: ImageMapPolygonObject.idl,v $ + * + * $Revision: 1.1 $ + * + * last change: $Author: cl $ $Date: 2001-03-14 17:14:22 $ + * + * 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_image_ImageMapPolygonObject_idl__ +#define __com_sun_star_image_ImageMapPolygonObject_idl__ + +#ifndef __com_sun_star_image_ImageMapObject_idl__ +#include <com/sun/star/image/ImageMapObject.idl> +#endif + +#ifndef __com_sun_star_drawing_PointSequence_idl__ +#include <com/sun/star/drawing/PointSequence.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module image { + +//============================================================================= + +/** this service describes a polygon shaped region inside + a html image map. + @see ImageMap + @see ImageMapObject +*/ +service ImageMapPolygonObject +{ + /** The basic service for all image map objects. */ + service ImageMapObject; + + /** This sequence of points outlines the click area of + this image map object. */ + [property] com::sun::star::drawing::PointSequence Polygon; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/image/ImageMapRectangleObject.idl b/offapi/com/sun/star/image/ImageMapRectangleObject.idl new file mode 100644 index 000000000..57b0e6988 --- /dev/null +++ b/offapi/com/sun/star/image/ImageMapRectangleObject.idl @@ -0,0 +1,96 @@ +/************************************************************************* + * + * $RCSfile: ImageMapRectangleObject.idl,v $ + * + * $Revision: 1.1 $ + * + * last change: $Author: cl $ $Date: 2001-03-14 17:14:22 $ + * + * 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_image_ImageMapRectangleObject_idl__ +#define __com_sun_star_image_ImageMapRectangleObject_idl__ + +#ifndef __com_sun_star_image_ImageMapObject_idl__ +#include <com/sun/star/image/ImageMapObject.idl> +#endif + +#ifndef __com_sun_star_awt_Rectangle_idl__ +#include <com/sun/star/awt/Rectangle.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module image { + +//============================================================================= + +/** this service describes a rectangular shaped region inside + a html image map. + @see ImageMap + @see ImageMapObject +*/ +service ImageMapRectangleObject +{ + /** The basic service for all image map objects. */ + service ImageMapObject; + + /** This is the boundary of this rectangle object */ + [property] com::sun::star::awt::Rectangle Boundary; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/image/makefile.mk b/offapi/com/sun/star/image/makefile.mk new file mode 100644 index 000000000..83697d6c2 --- /dev/null +++ b/offapi/com/sun/star/image/makefile.mk @@ -0,0 +1,85 @@ +#************************************************************************* +# +# $RCSfile: makefile.mk,v $ +# +# $Revision: 1.1 $ +# +# last change: $Author: cl $ $Date: 2001-03-14 17:14:22 $ +# +# 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): _______________________________________ +# +# +# +#************************************************************************* + +PRJ=..$/..$/..$/.. + +PRJNAME=api + +TARGET=cssimage +PACKAGE=com$/sun$/star$/image + +# --- Settings ----------------------------------------------------- +.INCLUDE : $(PRJ)$/util$/makefile.pmk + +# ------------------------------------------------------------------------ + +IDLFILES=\ + ImageMap.idl\ + ImageMapObject.idl\ + ImageMapRectangleObject.idl\ + ImageMapCircleObject.idl\ + ImageMapPolygonObject.idl + +# ------------------------------------------------------------------ + +.INCLUDE : target.mk +.INCLUDE : $(PRJ)$/util$/target.pmk |