diff options
Diffstat (limited to 'offapi/com/sun/star/rendering')
-rw-r--r-- | offapi/com/sun/star/rendering/ARGBColor.idl | 55 | ||||
-rw-r--r-- | offapi/com/sun/star/rendering/BitmapCanvas.idl | 57 | ||||
-rw-r--r-- | offapi/com/sun/star/rendering/Canvas.idl | 42 | ||||
-rw-r--r-- | offapi/com/sun/star/rendering/Color.idl | 41 | ||||
-rw-r--r-- | offapi/com/sun/star/rendering/ColorComponent.idl | 38 | ||||
-rw-r--r-- | offapi/com/sun/star/rendering/MtfRenderer.idl | 9 | ||||
-rw-r--r-- | offapi/com/sun/star/rendering/RGBColor.idl | 49 | ||||
-rw-r--r-- | offapi/com/sun/star/rendering/XBitmapCanvas.idl | 18 | ||||
-rw-r--r-- | offapi/com/sun/star/rendering/XCanvas.idl | 5 | ||||
-rw-r--r-- | offapi/com/sun/star/rendering/XColorSpace.idl | 41 | ||||
-rw-r--r-- | offapi/com/sun/star/rendering/XMtfRenderer.idl | 41 |
11 files changed, 328 insertions, 68 deletions
diff --git a/offapi/com/sun/star/rendering/ARGBColor.idl b/offapi/com/sun/star/rendering/ARGBColor.idl new file mode 100644 index 000000000..16d0ee17b --- /dev/null +++ b/offapi/com/sun/star/rendering/ARGBColor.idl @@ -0,0 +1,55 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_rendering_ARGBColor_idl__ +#define __com_sun_star_rendering_ARGBColor_idl__ + +#ifndef __com_sun_star_rendering_ColorComponent_idl__ +#include <com/sun/star/rendering/ColorComponent.idl> +#endif + +module com { module sun { module star { module rendering { + +/// ARGB color quad +published struct ARGBColor +{ + /** Alpha component.<p> + + Valid range is [0,1.0], with 0.0 denoting fully transparent, + and 1.0 fully opaque. + */ + ColorComponent Alpha; + /// Red component. Valid range is [0,1.0] + ColorComponent Red; + /// Green component. Valid range is [0,1.0] + ColorComponent Green; + /// Blue component. Valid range is [0,1.0] + ColorComponent Blue; +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/rendering/BitmapCanvas.idl b/offapi/com/sun/star/rendering/BitmapCanvas.idl new file mode 100644 index 000000000..70bd91303 --- /dev/null +++ b/offapi/com/sun/star/rendering/BitmapCanvas.idl @@ -0,0 +1,57 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_rendering_BitmapCanvas_idl__ +#define __com_sun_star_rendering_BitmapCanvas_idl__ + +#ifndef __com_sun_star_rendering_XBitmap_idl__ +#include <com/sun/star/rendering/XBitmap.idl> +#endif +#ifndef __com_sun_star_rendering_XBitmapCanvas_idl__ +#include <com/sun/star/rendering/XBitmapCanvas.idl> +#endif + + +module com { module sun { module star { module rendering { + +// TODO: Multiple-inheritance interfaces + +/** This service provides the interfaces for a <type>XBitmapCanvas</type> + */ +service BitmapCanvas +{ + /** Canvas interface, to issue rendering operations. + */ + interface XBitmapCanvas; + + /** Bitmap interface, to directly manipulate the pixel. + */ + interface XBitmap; +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/rendering/Canvas.idl b/offapi/com/sun/star/rendering/Canvas.idl new file mode 100644 index 000000000..6c7336f79 --- /dev/null +++ b/offapi/com/sun/star/rendering/Canvas.idl @@ -0,0 +1,42 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_rendering_Canvas_idl__ +#define __com_sun_star_rendering_Canvas_idl__ + +#ifndef __com_sun_star_rendering_XCanvas_idl__ +#include <com/sun/star/rendering/XCanvas.idl> +#endif + + +module com { module sun { module star { module rendering { + +/// Service providing an <type>XCanvas</type> interface +service Canvas: XCanvas; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/rendering/Color.idl b/offapi/com/sun/star/rendering/Color.idl new file mode 100644 index 000000000..f36fbbe90 --- /dev/null +++ b/offapi/com/sun/star/rendering/Color.idl @@ -0,0 +1,41 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_rendering_Color_idl__ +#define __com_sun_star_rendering_Color_idl__ + +#ifndef __com_sun_star_rendering_ColorComponent_idl__ +#include <com/sun/star/rendering/ColorComponent.idl> +#endif + +module com { module sun { module star { module rendering { + +/// Shorthand for the device-dependent color components, and easier to read +published typedef sequence<ColorComponent> Color; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/rendering/ColorComponent.idl b/offapi/com/sun/star/rendering/ColorComponent.idl new file mode 100644 index 000000000..c4a21a5a0 --- /dev/null +++ b/offapi/com/sun/star/rendering/ColorComponent.idl @@ -0,0 +1,38 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_rendering_ColorComponent_idl__ +#define __com_sun_star_rendering_ColorComponent_idl__ + +module com { module sun { module star { module rendering { + +/// Shorthand for the device-dependent color components, and easier to read +published typedef double ColorComponent; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/rendering/MtfRenderer.idl b/offapi/com/sun/star/rendering/MtfRenderer.idl index af07f0a1d..43b76ef10 100644 --- a/offapi/com/sun/star/rendering/MtfRenderer.idl +++ b/offapi/com/sun/star/rendering/MtfRenderer.idl @@ -28,17 +28,12 @@ #ifndef __com_sun_star_rendering_MtfRenderer_idl__ #define __com_sun_star_rendering_MtfRenderer_idl__ -#include <com/sun/star/rendering/XCanvas.idl> +#include <com/sun/star/rendering/XMtfRenderer.idl> module com { module sun { module star { module rendering { - interface XMtfRenderer : ::com::sun::star::uno::XInterface - { - void setMetafile( [in] sequence< byte > aMtf ); - void draw( [in] double fScaleX, [in] double fScaleY ); - }; - service MtfRenderer : XMtfRenderer; + }; }; }; }; #endif diff --git a/offapi/com/sun/star/rendering/RGBColor.idl b/offapi/com/sun/star/rendering/RGBColor.idl new file mode 100644 index 000000000..a2bee3373 --- /dev/null +++ b/offapi/com/sun/star/rendering/RGBColor.idl @@ -0,0 +1,49 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_rendering_RGBColor_idl__ +#define __com_sun_star_rendering_RGBColor_idl__ + +#ifndef __com_sun_star_rendering_ColorComponent_idl__ +#include <com/sun/star/rendering/ColorComponent.idl> +#endif + +module com { module sun { module star { module rendering { + +/// RGB color triplet +published struct RGBColor +{ + /// Red component. Valid range is [0,1.0] + ColorComponent Red; + /// Green component. Valid range is [0,1.0] + ColorComponent Green; + /// Blue component. Valid range is [0,1.0] + ColorComponent Blue; +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/rendering/XBitmapCanvas.idl b/offapi/com/sun/star/rendering/XBitmapCanvas.idl index c5030b998..2dcab8f2a 100644 --- a/offapi/com/sun/star/rendering/XBitmapCanvas.idl +++ b/offapi/com/sun/star/rendering/XBitmapCanvas.idl @@ -31,7 +31,6 @@ #include <com/sun/star/lang/IllegalArgumentException.idl> #include <com/sun/star/geometry/RealRectangle2D.idl> #include <com/sun/star/rendering/RenderState.idl> -#include <com/sun/star/rendering/XBitmap.idl> #include <com/sun/star/rendering/XCanvas.idl> #include <com/sun/star/rendering/VolatileContentDestroyedException.idl> @@ -115,23 +114,6 @@ published interface XBitmapCanvas : XCanvas }; -//============================================================================= - -// TODO: Multiple-inheritance interfaces - -/** This service provides the interfaces for a <type>XBitmapCanvas</type> - */ -service BitmapCanvas -{ - /** Canvas interface, to issue rendering operations. - */ - interface XBitmapCanvas; - - /** Bitmap interface, to directly manipulate the pixel. - */ - interface XBitmap; -}; - }; }; }; }; #endif diff --git a/offapi/com/sun/star/rendering/XCanvas.idl b/offapi/com/sun/star/rendering/XCanvas.idl index d246c74eb..386420a25 100644 --- a/offapi/com/sun/star/rendering/XCanvas.idl +++ b/offapi/com/sun/star/rendering/XCanvas.idl @@ -703,11 +703,6 @@ published interface XCanvas : ::com::sun::star::uno::XInterface XGraphicDevice getDevice(); }; -//============================================================================= - -/// Service providing an <type>XCanvas</type> interface -service Canvas: XCanvas; - }; }; }; }; #endif diff --git a/offapi/com/sun/star/rendering/XColorSpace.idl b/offapi/com/sun/star/rendering/XColorSpace.idl index 20a5e669b..ed624c9b0 100644 --- a/offapi/com/sun/star/rendering/XColorSpace.idl +++ b/offapi/com/sun/star/rendering/XColorSpace.idl @@ -31,47 +31,12 @@ #include <com/sun/star/lang/IllegalArgumentException.idl> #include <com/sun/star/beans/PropertyValue.idl> #include <com/sun/star/rendering/ColorProfile.idl> +#include <com/sun/star/rendering/ColorComponent.idl> +#include <com/sun/star/rendering/RGBColor.idl> +#include <com/sun/star/rendering/ARGBColor.idl> module com { module sun { module star { module rendering { -/// Shorthand for the device-dependent color components, and easier to read -published typedef double ColorComponent; -published typedef sequence<ColorComponent> Color; - -//============================================================================= - -/// RGB color triplet -published struct RGBColor -{ - /// Red component. Valid range is [0,1.0] - ColorComponent Red; - /// Green component. Valid range is [0,1.0] - ColorComponent Green; - /// Blue component. Valid range is [0,1.0] - ColorComponent Blue; -}; - -//============================================================================= - -/// ARGB color quad -published struct ARGBColor -{ - /** Alpha component.<p> - - Valid range is [0,1.0], with 0.0 denoting fully transparent, - and 1.0 fully opaque. - */ - ColorComponent Alpha; - /// Red component. Valid range is [0,1.0] - ColorComponent Red; - /// Green component. Valid range is [0,1.0] - ColorComponent Green; - /// Blue component. Valid range is [0,1.0] - ColorComponent Blue; -}; - -//============================================================================= - /** Information how to interpret certain color data.<p> This interface encapsulates all information that is necessary to diff --git a/offapi/com/sun/star/rendering/XMtfRenderer.idl b/offapi/com/sun/star/rendering/XMtfRenderer.idl new file mode 100644 index 000000000..ac69a9a75 --- /dev/null +++ b/offapi/com/sun/star/rendering/XMtfRenderer.idl @@ -0,0 +1,41 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2010 Novell, Inc. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_rendering_XMtfRenderer_idl__ +#define __com_sun_star_rendering_XMtfRenderer_idl__ + +module com { module sun { module star { module rendering { + + interface XMtfRenderer : ::com::sun::star::uno::XInterface + { + void setMetafile( [in] sequence< byte > aMtf ); + void draw( [in] double fScaleX, [in] double fScaleY ); + }; + +}; }; }; }; + +#endif |