/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * 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 * * for a copy of the LGPLv3 License. * ************************************************************************/ #ifndef __com_sun_star_drawing_XShapeBinder_idl__ #define __com_sun_star_drawing_XShapeBinder_idl__ #include #include #include //============================================================================= module com { module sun { module star { module drawing { //============================================================================= /** connects or breaks the lines of Shapes */ published interface XShapeBinder: com::sun::star::uno::XInterface { //------------------------------------------------------------------------- /** binds Shapes together. @param xShapes a container with Shapes that will be bind together. All Shapes will be converted to a PolyPolygonBezierShape and the lines will be connected. The Shapes in xShape will be removed from the GenericDrawPage and disposed. @returns a newly created PolyPolygonBezierShape which contains all line segment from the supplied Shapes. It is also added to the GenericDrawPage of the source Shapes. */ com::sun::star::drawing::XShape bind( [in] com::sun::star::drawing::XShapes xShapes ); //------------------------------------------------------------------------- /** breaks a Shape into its line segments @param xShape the given Shape will be converted to a PolyPolygonBezierShape and the line segments of this Shape will be used to create new PolyPolygonBezierShape shapes. The original Shape will be removed from its GenericDrawPage and disposed. */ void unbind( [in] com::sun::star::drawing::XShape xShape ); }; //============================================================================= }; }; }; }; #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */