diff options
Diffstat (limited to 'offapi/com/sun/star/drawing')
215 files changed, 19020 insertions, 0 deletions
diff --git a/offapi/com/sun/star/drawing/AccessibleDrawDocumentView.idl b/offapi/com/sun/star/drawing/AccessibleDrawDocumentView.idl new file mode 100644 index 000000000000..d00884a08faf --- /dev/null +++ b/offapi/com/sun/star/drawing/AccessibleDrawDocumentView.idl @@ -0,0 +1,142 @@ +/************************************************************************* + * + * 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_drawing_AccessibleGraphicShape_idl__ +#define __com_sun_star_drawing_AccessibleGraphicShape_idl__ + +#ifndef __com_sun_star_accessibility_XAccessible_idl__ +#include <com/sun/star/accessibility/XAccessible.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleContext_idl__ +#include <com/sun/star/accessibility/XAccessibleContext.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleComponent.idl> +#endif + +module com { module sun { module star { module drawing { + +/** The <type>AccessibleDrawDocumentView</type> service is implemented by + views of Draw and Impress documents. + + <p>An object that implements the <type>AccessibleDrawDocumentView</type> + service provides information about the view of a Draw or Impress + document in one of the various view modes. With its children it gives + access to the current page and the shapes on that page.</p> + + <p>This service gives a simplified view on the underlying document. It + tries both to keep the structure of the accessibility representation + tree as simple as possible and provide as much relevant information as + possible. This has the following consequences: + <ol> + <li>Only the current draw page and only the visible shapes are + accessible. To switch to another page or to access shapes that lie + outside the currently visible area, the user has to issue these requests + manually or programmatically through the usual chanels, e.g. pressing + keys or selecting menu entries.</li> + <li>The hierarchy exposed through the + <type scope="::com::sun::star::accessibility">XAccessibleContext</type> + interface does not necessarily correspond directly to the underlying + draw page structure. Internal nodes in this hierarchy are introduced + by group shapes, 3D scenes, and OLE objects.</li> + <li>The view modes editing view, outline view, slides view, notes view, + handout view, and presentation view are not exposed explicitly. + However, if there happens to be a view mode change which results in a + rearrangement of the visible shapes, the user gets notified of this.</li> + </ol></p> + + @since OOo 1.1.2 +*/ +published service AccessibleDrawDocumentView +{ + /** Base interface for being accessible. It gives access to the + <type scope="::com::sun::star::accessibility">XAccessibleContext</type> + interface. + */ + interface ::com::sun::star::accessibility::XAccessible; + + /** Provide access to the view of a document. + + <p>You can access the following information: + <ul> + <li>Role: The object's role is <const + scope="com::sun::star::accessibility" + >AccessibleRole::DOCUMENT</const>.</li> + <li>Name: Its name is "AccessibleDrawDocumentView", + "AccessibleOutlineView", or "slide window".</li> + <li>Description: The description is "Draw Document", "Accessible + Draw Document Outline", or "slide window".</li> + <li>Children: The shapes of the current draw page that are currently + visible are direct and indirect children of (an object + implementing) + this service. Group shapes, 3D scenes, and OLE objects + introduce further levels into the hierarchy. If the visibility + of shapes changes--due to + scrolling, switching the current draw page, or changing the view + mode--the appropriate listeners are called and the user gets + informed of this.</li> + <li>Parent: The parent will usually be the window that contains the + draw document view. It has to be set via implementation dependend + ways.</li> + <li>Relations: Relations are set and modified from the outside.</li> + <li>States: <const scope="com::sun::star::accessibility" + >AccessibleStateType::DEFUNC</const> is set if a document view + becomes obsolete like when the window, which displays the view, + is closed. Otherwise the states + <const scope="com::sun::star::accessibility" + >AccessibleStateType::ENABLED</const>, + <const scope="com::sun::star::accessibility" + >AccessibleStateType::SHOWING</const>, + <const scope="com::sun::star::accessibility" + >AccessibleStateType::VISIBLE</const>, + <const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSABLE</const>, and + <const scope="com::sun::star::accessibility" + >AccessibleStateType::SELECTABLE</const> + are always set.</li> + <li>Locale: Is obtained from the parent and returned unchanged.</li> + </ul></p> + */ + interface ::com::sun::star::accessibility::XAccessibleContext; + + /** Provide access to a draw document's graphical representation. + + <p>The main purpose of this interface is to provide a bounding box + of the currently visible area and to let the user find children + (i.e. shapes) that cover a given test point. The more interesting + part of the graphical representation of a draw page lies in its + children. See the <type>AccessibleShape</type> service for more + information about shapes.</p> + + @see AccessibleShape + */ + interface ::com::sun::star::accessibility::XAccessibleComponent; +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/drawing/AccessibleGraphControl.idl b/offapi/com/sun/star/drawing/AccessibleGraphControl.idl new file mode 100644 index 000000000000..eb7fcd829fed --- /dev/null +++ b/offapi/com/sun/star/drawing/AccessibleGraphControl.idl @@ -0,0 +1,83 @@ +/************************************************************************* + * + * 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_drawing_AccessibleGraphControl_idl__ +#define __com_sun_star_drawing_AccessibleGraphControl_idl__ + + +// Declarations of interfaces to avoid inclusion of IDL files. +module com { module sun { module star { module accessibility { + published interface XAccessible; + published interface XAccessibleContext; + published interface XAccessibleComponent; + published interface XAccessibleEventBroadcaster; + published interface XAccessibleSelection; +}; }; }; }; + + + + +module com { module sun { module star { module drawing { + +/** The service describes the accessible graph controls that are used in the + image map of the Draw and Impress applications and the contour dialog of + the Writer application. + + <p>The children of graph controls are shapes that define contrours.</p> + + @since OOo 1.1.2 + */ +published service AccessibleGraphControl +{ + /** Base interface for being accessible. It gives access to the + <type scope="::com::sun::star::accessibility">XAccessibleContext</type> + interface. + */ + interface ::com::sun::star::accessibility::XAccessible; + + /** Description of the base accessibility information. + */ + interface ::com::sun::star::accessibility::XAccessibleContext; + + /** This interface describes the graphical representation of an image + bullet. + */ + interface ::com::sun::star::accessibility::XAccessibleComponent; + + /** Inform listeners about new or removed children and about changes of + the visual appearance. + */ + interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster; + + /** Handle the selection of the shapes that represent the contour. + */ + interface ::com::sun::star::accessibility::XAccessibleSelection; +}; + + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/drawing/AccessibleGraphicShape.idl b/offapi/com/sun/star/drawing/AccessibleGraphicShape.idl new file mode 100644 index 000000000000..884fbe181984 --- /dev/null +++ b/offapi/com/sun/star/drawing/AccessibleGraphicShape.idl @@ -0,0 +1,100 @@ +/************************************************************************* + * + * 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_drawing_AccessibleGraphicShape_idl__ +#define __com_sun_star_drawing_AccessibleGraphicShape_idl__ + +#ifndef __com_sun_star_drawing_AccessibleShape_idl__ +#include <com/sun/star/drawing/AccessibleShape.idl> +#endif + +#ifndef __com_sun_star_accessibility_XAccessibleImage_idl__ +#include <com/sun/star/accessibility/XAccessibleImage.idl> +#endif + +module com { module sun { module star { module drawing { + +/** The <type>AccessibleGraphicShape</type> service is implemented by the + graphic object shapes shapes com.sun.star.drawing.GraphicObjectShape and + com.sun.star.presentation.GraphicObjectShape. + + <p>It differs from the included <type>AccessibleShape</type> 'base' + service by the additional support of the + <type + scope="::com::sun::star::accessibility">XAccessibleImage</type> + interface.</p> + + @since OOo 1.1.2 +*/ +published service AccessibleGraphicShape +{ + /** Give access to information of generic shapes. + + <p>See <type>AccessibleShape</type> for documentation and support of + the interfaces + <type scope="::com::sun::star::accessibility">XAccessible</type>, + <type scope="::com::sun::star::accessibility">XAccessibleContext</type>, + and + <type scope="::com::sun::star::accessibility">XAccessibleComponent</type>.</p> + + @see AccessibleShape + */ + service AccessibleShape; + + /** Give access to image specific information. + + <p>The support of the <type + scope="::com::sun::star::accessibility" + >XAccessibleImage</type> interface + requires the shape to provide a description of the displayed image + and the image's size in the screen coordinate system (pixel). At + the time being this interface does not provide information that is + not available through the <type>AccessibleShape</type> service: + the size returned by the + <member scope="::com::sun::star::accessibility" + >XAccessibleImage::getWidth</member> and <member + scope="::com::sun::star::accessibility" + >XAccessibleImage::getHeight</member> functions is the same as that + returned by the <member + scope="::com::sun::star::accessibility" + >XAccessibleComponent::getSize</member> function; the description + returned by <member + scope="::com::sun::star::accessibility" + >XAccessibleImage::getAccessibleImageDescription</member> function + is the same as the one returned by the <member + scope="::com::sun::star::accessibility" + >XAccessibleContext::getAccessibleDescription</member> function. + This makes the additional interface for + the time being basically an indicator of graphic shapes. This may + change in the future.</p> + */ + interface ::com::sun::star::accessibility::XAccessibleImage; +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/drawing/AccessibleImageBullet.idl b/offapi/com/sun/star/drawing/AccessibleImageBullet.idl new file mode 100644 index 000000000000..1a6464f3ef18 --- /dev/null +++ b/offapi/com/sun/star/drawing/AccessibleImageBullet.idl @@ -0,0 +1,111 @@ +/************************************************************************* + * + * 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_drawing_AccessibleImageBullet_idl__ +#define __com_sun_star_drawing_AccessibleImageBullet_idl__ + +#ifndef __com_sun_star_accessibility_XAccessibleContext_idl__ +#include <com/sun/star/accessibility/XAccessibleContext.idl> +#endif + +#ifndef __com_sun_star_accessibility_XAccessibleComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleComponent.idl> +#endif + +#ifndef __com_sun_star_accessibility_XAccessibleEditableText_idl__ +#include <com/sun/star/accessibility/XAccessibleEditableText.idl> +#endif + + +//============================================================================= + +module com { module sun { module star { module drawing { + +//============================================================================= + +/** The accessible view of an image bullet. + + @since OOo 1.1.2 + */ +service AccessibleImageBullet +{ + /** This interface gives access to an image bullet within a text + paragraph fragment that is at least partially visible on the + screen. + + <ul> + <li>The parent returned by + <method scope="::com::sun::star::accessibility" + >XAccessibleContext::getAccessibleParent</method> + is the accessible object of a text paragraph. + <li>There are no children returned by + <method scope="::com::sun::star::accessibility" + >XAccessibleContext::getAccessibleChild</method>. + <li>The role is <const scope="::com::sun::star::accessibility" + >AccessibleRole::GRAPHIC</const>. + <li>The name is "image bullet" (or the equivalent term + in application's language). + <li>The description contains the term "image bullet" (or the equivalent + term in application's language) and the number of the paragraph + within this bullet appears. + <li>There are no relations. + <li>The following states are supported by the + <type scope="::com::sun::star::accessibility" + >XAccessibleStateSet</type> returned by + <method scope="::com::sun::star::accessibility" + >XAccessibleContext::getAccessibleStateSet</method>. + <ul> + <li><const scope="::com::sun::star::accessibility" + >AccessibleStateType::DEFUNC</const> (indicates that + the document window has been closed or the image bullet + is not existing any longer). + <li><const scope="::com::sun::star::accessibility" + >AccessibleStateType::ENABLED</const> (always + contained) + <li><const scope="::com::sun::star::accessibility" + >AccessibleStateType::SHOWING</const> + <li><const scope="::com::sun::star::accessibility" + >AccessibleStateType::VISIBLE</const> + <li><const scope="::com::sun::star::accessibility" + >AccessibleStateType::INVALID</const> + </ul> + </ul> + + */ + interface ::com::sun::star::accessibility::XAccessibleContext; + + /** This interface describes the graphical representation of an image + bullet. + */ + interface ::com::sun::star::accessibility::XAccessibleComponent; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/drawing/AccessibleOLEShape.idl b/offapi/com/sun/star/drawing/AccessibleOLEShape.idl new file mode 100644 index 000000000000..00c46f4e34eb --- /dev/null +++ b/offapi/com/sun/star/drawing/AccessibleOLEShape.idl @@ -0,0 +1,87 @@ +/************************************************************************* + * + * 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_drawing_AccessibleGraphicShape_idl__ +#define __com_sun_star_drawing_AccessibleGraphicShape_idl__ + +#ifndef __com_sun_star_drawing_AccessibleShape_idl__ +#include <com/sun/star/drawing/AccessibleShape.idl> +#endif + +#ifndef __com_sun_star_accessibility_XAccessibleAction_idl__ +#include <com/sun/star/accessibility/XAccessibleAction.idl> +#endif + +module com { module sun { module star { module drawing { + +/** The <type>AccessibleOLEShape</type> service is implemented by + OLE shapes. + + <p>This includes generic OLE shapes, frames, plugins, and applets.</p> + + <p>This service supports the additional <type + scope="::com::sun::star::accessibility">XAccessibleAction</type> + interface.</p> + + <p>OLE objects are handled as place holders. While not activated the + accessible OLE shape is the only indicator of the OLE objects' + existence. When an OLE object has been activated then the accessbility + tree representing it (as far as that is available) is included directly + under the accessible document view and not under the OLE object. This + is due to underlying implementation constraints and may change in the + future.</p> + + + + @since OOo 1.1.2 +*/ +published service AccessibleOLEShape +{ + /** Give access to information of generic shapes. + + <p>See <type>AccessibleShape</type> for basic documentation and + support of the <type + scope="::com::sun::star::accessibility" + >XAccessibleContext</type>, and + <type scope="::com::sun::star::accessibility" + >XAccessibleComponent</type> interfaces. + + @see AccessibleShape + */ + service AccessibleShape; + + /** The intended purpose of the support of this interface is the + activation of the accessible OLE object. This, however, is not + realized at the moment. It therefore serves solely as indicator of + accessible OLE objects. + */ + interface ::com::sun::star::accessibility::XAccessibleAction; +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/drawing/AccessibleShape.idl b/offapi/com/sun/star/drawing/AccessibleShape.idl new file mode 100644 index 000000000000..5fa370bdb511 --- /dev/null +++ b/offapi/com/sun/star/drawing/AccessibleShape.idl @@ -0,0 +1,206 @@ +/************************************************************************* + * + * 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_drawing_AccessibleShape_idl__ +#define __com_sun_star_drawing_AccessibleShape_idl__ + +#ifndef __com_sun_star_accessibility_XAccessible_idl__ +#include <com/sun/star/accessibility/XAccessible.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleContext_idl__ +#include <com/sun/star/accessibility/XAccessibleContext.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleExtendedComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleExtendedComponent.idl> +#endif + +module com { module sun { module star { module drawing { + +/** The <type>AccessibleShape</type> service is implemented by UNO shapes to + provide accessibility information that describe the shapes' features. + A UNO shape is any object that implements the <type + scope="::com::sun::star::drawing">XShape</type> interface. + + <p>The content of a draw page is modeled as tree of accessible shapes + and accessible text paragraphs. The root of this (sub-)tree is the + accessible draw document view. An accessible shape implements either + this service or one of the 'derived' services + <type>AccessibleGraphicShape</type> or <type>AccessibleOLEShape</type>. + See the section Children in the description of the + <type scope="::com::sun::star::accessibility" + >XAccessibleContext</type> interface support for more details.</p> + + <p>There are two services that extend this one: the + <type>AccessibleGraphicShape</type> and the + <type>AccessibleOLEShape</type> services provide additional interfaces. + See there for details.</p> + + <p>A shape object is either fully or partially visible on the screen or + has set the <const scope="::com::sun::star::accessibility" + >AccessibleStateType::DEFUNC</const> state to indicate that it is no longer + actively supported by its parent.</p> + + <p>Each shape object that has not set the DEFUNC state has a valid + parent. That is either the containing draw page or a group shape or a + 3D scene object.</p> + + @since OOo 1.1.2 +*/ +published service AccessibleShape +{ + /** Base interface for being accessible. It gives access to the + <type scope="::com::sun::star::accessibility">XAccessibleContext</type> + interface. + */ + interface ::com::sun::star::accessibility::XAccessible; + + /** Give access to the structural information of a shape. + + <p>You can access the following information for the shape being made + accessible: + <ul> + <li>Role: The role of all shapes is <const + scope="com::sun::star::accessibility" + >AccessibleRole::SHAPE</const>.</li> + <li>Name: The name of a shape is its localized type name.</li> + <li>Description: Descriptions are localized and start with the + shape's type and style. After that follow some properties that + differ from the defaults with respect to the style. + <li>Children: The children of a shape are either other accessible + shapes or accessible text paragraphs. Only group shapes, 3D scene + shapes, and OLE shapes may contain other shapes as children. + Some of the shapes may have text paragraphs as (additional) + children. See <type scope="::com::sun::star::text" + >AccessibleParagraphView</type> for details of + how this text is represented.</li> + <li>Parent: The parent is either the document view as represented by + <type>AccessibleDrawDocumentView</type> or a group shape, 3D + scene shape, or OLE shape.</li> + <li>Relations: Are set and maintained from the outside. See the + service description of the object that has accessible shapes as + children for details.</li> + <li>States: The states supported by this service are: + <ul> + <li><p><const scope="com::sun::star::accessibility" + >AccessibleStateType::DEFUNC</const> is set if an accessible + shape is not visible but still existent for some reason. + This should not really happen and is a sign that someone, + e.g. an AT-Tool holds references to such a shape. The + reason for this is that either the owner of the accessible + shape did not remove it from its list of children or that + the AT-Tool does not care for the events indicating + this.</p> + <p>Usually an object that has the <const + scope="com::sun::star::accessibility" + >AccessibleStateType::DEFUNC</const> state set has already + been disposed and subsequent calls to this object result in + <type scope="::com::sun::star::lang">DisposedException</type> + exceptions.</p> + <p>If this state is set then no other of the states below is + set. This is also true for the states that are otherwise + allways set (which makes 'allways' more of a sort of + 'normally').</p></li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::EDITABLE</const></li> is always set. + This state is interpreted to mean that not only text but + also other, graphical, properties of a shape can be modified. + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ENABLED</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSABLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSED</const> is set according to + whether the shape currently has the focus.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::MULTI_LINE</const> is set if a shape + supports the <type scope="::com::sun::star::accessibility" + >XAccessibleText</type> interface.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::OPAQUE</const> is set for certain shapes + with certain attributes like for a filled rectangle.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::RESIZABLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SELECTABLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SELECTED</const> is set according to + whether the shape is currently selected.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SHOWING</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::VISIBLE</const> is always set.</li> + </ul> + <li>Locale: The shape returns the locale of its parent.</li> + <li>Property change listeners: Property change listeners that are + registered with a shape are informed of the usual events.</li> + </ul> + */ + interface ::com::sun::star::accessibility::XAccessibleContext; + + /** Give access to the graphical representation of a shape. + + <p>The bounding box returned by the <method + scope="::com::sun::star::accessibility" + >XAccessibleComponent::getBounds</method> function returns the + shape's bounding box clipped at its parent's bounding box</p> + + <p>An accessible shape tries as best as it can to return proper + values for calls to the + <method scope="::com::sun::star::accessibility" + >XAccessibleExtendedComponent::getForeground</method> and + <method scope="::com::sun::star::accessibility" + >XAccessibleExtendedComponent::getBackground</method> functions. + If the shape is painted with a uniform and non-transparent color + then the returned colors may differ from the ones visible on the + screen.</p> + + <p>Key bindings are not supported at the moment</p> + */ + interface ::com::sun::star::accessibility::XAccessibleComponent; + + /** Give extended access to the graphical representation of a shape. + + <p>The functions <method + scope="::com::sun::star::accessibility" + >XAccessibleExtendedComponent::getFont</method>, + <method scope="::com::sun::star::accessibility" + >XAccessibleExtendedComponent::getTitledBorderText</method>, and + <method scope="::com::sun::star::accessibility" + >XAccessibleExtendedComponent::getToolTipText</method> are not + supported and return empty references respectively empty + strings.</p> + + <p>The support of this interface is optional to reduce overhead in + case that no text is displayed and color information can not be + determined with an acceptable cost.</p> + */ + [optional] interface ::com::sun::star::accessibility::XAccessibleExtendedComponent; +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/drawing/AccessibleSlideView.idl b/offapi/com/sun/star/drawing/AccessibleSlideView.idl new file mode 100644 index 000000000000..661ace660bc4 --- /dev/null +++ b/offapi/com/sun/star/drawing/AccessibleSlideView.idl @@ -0,0 +1,65 @@ +/************************************************************************* + * + * 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_drawing_AccessibleGraphicShape_idl__ +#define __com_sun_star_drawing_AccessibleGraphicShape_idl__ + +#ifndef __com_sun_star_accessibility_XAccessible_idl__ +#include <com/sun/star/accessibility/XAccessible.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleContext_idl__ +#include <com/sun/star/accessibility/XAccessibleContext.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleComponent.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleEventBroadcaster_idl__ +#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.idl> +#endif + +module com { module sun { module star { module drawing { + +/** The <type>AccessibleSlideView</type> service is implemented by + slide views of Impress documents. + + <p>An accessible slide view gives access to all visible slides of a + slide view.</p> + + @since OOo 1.1.2 +*/ +published service AccessibleSlideView +{ + interface ::com::sun::star::accessibility::XAccessible; + interface ::com::sun::star::accessibility::XAccessibleContext; + interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster; + interface ::com::sun::star::accessibility::XAccessibleComponent; + interface ::com::sun::star::accessibility::XAccessibleSelection; +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/drawing/AccessibleSlideViewObject.idl b/offapi/com/sun/star/drawing/AccessibleSlideViewObject.idl new file mode 100644 index 000000000000..b03d1583f0f2 --- /dev/null +++ b/offapi/com/sun/star/drawing/AccessibleSlideViewObject.idl @@ -0,0 +1,64 @@ +/************************************************************************* + * + * 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_drawing_AccessibleGraphicShape_idl__ +#define __com_sun_star_drawing_AccessibleGraphicShape_idl__ + +#ifndef __com_sun_star_accessibility_XAccessible_idl__ +#include <com/sun/star/accessibility/XAccessible.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleContext_idl__ +#include <com/sun/star/accessibility/XAccessibleContext.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleComponent.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleEventBroadcaster_idl__ +#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.idl> +#endif + +module com { module sun { module star { module drawing { + +/** The <type>AccessibleSlideViewObject</type> service is implemented by + the slides of the slide view of Impress documents. + + <p>An accessible slide view object gives access to one of the visible + slides of a slide view.</p> + + @since OOo 1.1.2 +*/ +published service AccessibleSlideViewObject +{ + interface ::com::sun::star::accessibility::XAccessible; + interface ::com::sun::star::accessibility::XAccessibleContext; + interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster; + interface ::com::sun::star::accessibility::XAccessibleComponent; +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/drawing/Alignment.idl b/offapi/com/sun/star/drawing/Alignment.idl new file mode 100644 index 000000000000..131f62d5c887 --- /dev/null +++ b/offapi/com/sun/star/drawing/Alignment.idl @@ -0,0 +1,104 @@ +/************************************************************************* + * + * 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_drawing_Alignment_idl__ +#define __com_sun_star_drawing_Alignment_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: enum com::sun::star::drawing::Alignment +/** The <type>Alignment</type> enumeration is a general way to specify the + alignment of an object or sub-object relative to another object. + */ +published enum Alignment +{ + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR Alignment:: TOP_LEFT, + + // DocMerge: empty anyway + TOP_LEFT, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR Alignment:: TOP, + + // DocMerge: empty anyway + TOP, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR Alignment:: TOP_RIGHT, + + // DocMerge: empty anyway + TOP_RIGHT, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR Alignment:: LEFT, + + // DocMerge: empty anyway + LEFT, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR Alignment:: CENTER, + + // DocMerge: empty anyway + CENTER, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR Alignment:: RIGHT, + + // DocMerge: empty anyway + RIGHT, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR Alignment:: BOTTOM_LEFT, + + // DocMerge: empty anyway + BOTTOM_LEFT, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR Alignment:: BOTTOM, + + // DocMerge: empty anyway + BOTTOM, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR Alignment:: BOTTOM_RIGHT + + // DocMerge: empty anyway + BOTTOM_RIGHT + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/AppletShape.idl b/offapi/com/sun/star/drawing/AppletShape.idl new file mode 100644 index 000000000000..95e06b668b8e --- /dev/null +++ b/offapi/com/sun/star/drawing/AppletShape.idl @@ -0,0 +1,98 @@ +/************************************************************************* + * + * 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_drawing_AppletShape_idl__ +#define __com_sun_star_drawing_AppletShape_idl__ + +#ifndef __com_sun_star_drawing_Shape_idl__ +#include <com/sun/star/drawing/Shape.idl> +#endif + +#ifndef __com_sun_star_beans_PropertyValue_idl__ +#include <com/sun/star/beans/PropertyValue.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module drawing { + +//============================================================================= +/** This <type>Shape</type> encapsulates an applet. + + <p> An applet is a small Java-based program that is executed and rendered + embedded in a document. +*/ +published service AppletShape +{ + /** basic service for position, size and z-order. + + <p>A <type>AppletShape</type> cannot be rotated. + */ + service com::sun::star::drawing::Shape; + + //------------------------------------------------------------------------- + + /** This property specifies the base URI for the applet. + + <p>If this property is empty, then it defaults the same base URI as for + the current document. + */ + [property] string AppletCodeBase; + + //------------------------------------------------------------------------- + + /** this is an optional name for the applet. + */ + [property] string AppletName; + + //------------------------------------------------------------------------- + + /** This property specifies one of the following: + <br>The name of the class file that contains the compiled applet subclass. + <br>The path to the class, including the class file itself. + */ + [property] string AppletCode; + + //------------------------------------------------------------------------- + + /** This sequence contains paramaters that are passed to the applet + when it is initialized. + */ + [property] sequence< com::sun::star::beans::PropertyValue > AppletCommands; + + //------------------------------------------------------------------------- + + /** This property specifies whether or not the applet can be scripted. + */ + [readonly, property] boolean AppletIsScript; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/Arrangement.idl b/offapi/com/sun/star/drawing/Arrangement.idl new file mode 100644 index 000000000000..917f1403047f --- /dev/null +++ b/offapi/com/sun/star/drawing/Arrangement.idl @@ -0,0 +1,80 @@ +/************************************************************************* + * + * 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_drawing_Arrangement_idl__ +#define __com_sun_star_drawing_Arrangement_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: enum com::sun::star::drawing::Arrangement +/** With this enumeration you can arrange the relative position of an object + within the other objects. + + @deprecated + */ +published enum Arrangement +{ + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::Arrangement::FRONT + /** Move this object in front of all other objects. + */ + FRONT, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::Arrangement::MORE_FRONT + /** Move this object one object more to the front. + */ + MORE_FRONT, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::Arrangement::MORE_BACK + /** Move this object one object more to the back. + */ + MORE_BACK, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::Arrangement::BACK + /** Move this object behind all other objects. + */ + BACK + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/Background.idl b/offapi/com/sun/star/drawing/Background.idl new file mode 100644 index 000000000000..7625ef293370 --- /dev/null +++ b/offapi/com/sun/star/drawing/Background.idl @@ -0,0 +1,54 @@ +/************************************************************************* + * + * 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_drawing_Background_idl__ +#define __com_sun_star_drawing_Background_idl__ + +#ifndef __com_sun_star_drawing_FillProperties_idl__ +#include <com/sun/star/drawing/FillProperties.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module drawing { + +//============================================================================= + +/** this service provides the properties to describe a background filling for + a drawing page. It can be obtained by the <type scope="com::sun::star::lang">XMultiServiceFactory</type> + of a document and be set on draw pages that support a filled background. + */ +published service Background +{ + service FillProperties; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/BezierPoint.idl b/offapi/com/sun/star/drawing/BezierPoint.idl new file mode 100644 index 000000000000..6adf8c5f0b42 --- /dev/null +++ b/offapi/com/sun/star/drawing/BezierPoint.idl @@ -0,0 +1,77 @@ +/************************************************************************* + * + * 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_drawing_BezierPoint_idl__ +#define __com_sun_star_drawing_BezierPoint_idl__ + +#ifndef __com_sun_star_awt_Point_idl__ +#include <com/sun/star/awt/Point.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: struct com::sun::star::drawing::BezierPoint +/** This is a point on a bezier curve. + + <p>The two control points specify how the bezier curve + goes through the given position.</p> + + @deprecated + */ +published struct BezierPoint +{ + // DocMerge from xml: field com::sun::star::drawing::BezierPoint::Position + /** This is the position of this point. + */ + com::sun::star::awt::Point Position; + + //------------------------------------------------------------------------- + + // DocMerge from xml: field com::sun::star::drawing::BezierPoint::ControlPoint1 + /** This is the position of the first control point. + */ + com::sun::star::awt::Point ControlPoint1; + + //------------------------------------------------------------------------- + + // DocMerge from xml: field com::sun::star::drawing::BezierPoint::ControlPoint2 + /** This is the position of the second control point. + */ + com::sun::star::awt::Point ControlPoint2; + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/BitmapMode.idl b/offapi/com/sun/star/drawing/BitmapMode.idl new file mode 100644 index 000000000000..d2414418927c --- /dev/null +++ b/offapi/com/sun/star/drawing/BitmapMode.idl @@ -0,0 +1,66 @@ +/************************************************************************* + * + * 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_drawing_BitmapMode_idl__ +#define __com_sun_star_drawing_BitmapMode_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** The <type>BitmapMode</type> selects an algorithm for filling an area with + a bitmap. + */ +published enum BitmapMode +{ + //------------------------------------------------------------------------- + + /** the bitmap is repeated over the fill area. + */ + REPEAT, + + //------------------------------------------------------------------------- + + /** the bitmap is stretched to fill the area. + */ + STRETCH, + + //------------------------------------------------------------------------- + + /** the bitmap is painted in its original or selected size. + */ + NO_REPEAT +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/BitmapTable.idl b/offapi/com/sun/star/drawing/BitmapTable.idl new file mode 100644 index 000000000000..1ef488e87438 --- /dev/null +++ b/offapi/com/sun/star/drawing/BitmapTable.idl @@ -0,0 +1,64 @@ +/************************************************************************* + * + * 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_drawing_BitmapTable_idl__ +#define __com_sun_star_drawing_BitmapTable_idl__ + +#ifndef __com_sun_star_container_XNameContainer_idl__ +#include <com/sun/star/container/XNameContainer.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** this is a container for URLs to bitmaps. + + <p>It is used for example to access the bitmaps that + are used inside a document for filling. + + @see DrawingDocumentFactory + @see FillStyle::FillBitmapURL +*/ +published service BitmapTable +{ + /** this container lets you access the URLs that + are indexed with a name. + + <p>Note: You can add new entries for later use, but you cannot + remove entries that are used inside the document. + */ + interface com::sun::star::container::XNameContainer; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/BoundVolume.idl b/offapi/com/sun/star/drawing/BoundVolume.idl new file mode 100644 index 000000000000..706eaccecd96 --- /dev/null +++ b/offapi/com/sun/star/drawing/BoundVolume.idl @@ -0,0 +1,60 @@ +/************************************************************************* + * + * 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_drawing_BoundVolume_idl__ +#define __com_sun_star_drawing_BoundVolume_idl__ + +#ifndef __com_sun_star_drawing_Position3D_idl__ +#include <com/sun/star/drawing/Position3D.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** specifies a three-dimensional boundary volume with two positions. + */ +published struct BoundVolume +{ + /** this is the minimum position inside the boundary volume. + */ + Position3D min; + + //------------------------------------------------------------------------- + + /** this is the maximum position inside the boundary volume. + */ + Position3D max; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/CameraGeometry.idl b/offapi/com/sun/star/drawing/CameraGeometry.idl new file mode 100644 index 000000000000..3d235e8a336f --- /dev/null +++ b/offapi/com/sun/star/drawing/CameraGeometry.idl @@ -0,0 +1,64 @@ +/************************************************************************* + * + * 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_drawing_CameraGeometry_idl__ +#define __com_sun_star_drawing_CameraGeometry_idl__ + +#ifndef __com_sun_star_drawing_Direction3D_idl__ +#include <com/sun/star/drawing/Direction3D.idl> +#endif + +#ifndef __com_sun_star_drawing_Position3D_idl__ +#include <com/sun/star/drawing/Position3D.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** specifies a three-dimensional camera. + */ +published struct CameraGeometry +{ + /** is the camera position */ + Position3D vrp; + + /** is the camera view direction */ + Direction3D vpn; + + /** is the camera up direction */ + Direction3D vup; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/CaptionEscapeDirection.idl b/offapi/com/sun/star/drawing/CaptionEscapeDirection.idl new file mode 100644 index 000000000000..4fccffff24e6 --- /dev/null +++ b/offapi/com/sun/star/drawing/CaptionEscapeDirection.idl @@ -0,0 +1,67 @@ +/************************************************************************* + * + * 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_drawing_CaptionEscapeDirection_idl__ +#define __com_sun_star_drawing_CaptionEscapeDirection_idl__ + +//============================================================================= + +module com { module sun { module star { module drawing { + +//============================================================================= +/** this flags describe escape direction for + the line of a <type>CaptionShape</type>. + + @see CaptionShape +*/ +published constants CaptionEscapeDirection +{ + //------------------------------------------------------------------------- + /** the caption line leaves the caption area at the horizontal edge + that is nearest to the caption point. + */ + const short horizontal = 0; + + //------------------------------------------------------------------------- + /** the caption line leaves the caption area at the vertical edge + that is nearest to the caption point. + */ + const short vertical = 1; + + //------------------------------------------------------------------------- + /** the caption line leaves the caption area at the edge + that is nearest to the caption point. + */ + const short auto = 2; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/CaptionShape.idl b/offapi/com/sun/star/drawing/CaptionShape.idl new file mode 100644 index 000000000000..d06d8e5ee260 --- /dev/null +++ b/offapi/com/sun/star/drawing/CaptionShape.idl @@ -0,0 +1,158 @@ +/************************************************************************* + * + * 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_drawing_CaptionShape_idl__ +#define __com_sun_star_drawing_CaptionShape_idl__ + +#ifndef __com_sun_star_drawing_Shape_idl__ +#include <com/sun/star/drawing/Shape.idl> +#endif + +#ifndef __com_sun_star_drawing_Text_idl__ +#include <com/sun/star/drawing/Text.idl> +#endif + +#ifndef __com_sun_star_drawing_FillProperties_idl__ +#include <com/sun/star/drawing/FillProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_LineProperties_idl__ +#include <com/sun/star/drawing/LineProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_ShadowProperties_idl__ +#include <com/sun/star/drawing/ShadowProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_RotationDescriptor_idl__ +#include <com/sun/star/drawing/RotationDescriptor.idl> +#endif + +#ifndef __com_sun_star_awt_Point_idl__ +#include <com/sun/star/awt/Point.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** The <type>CaptionShape</type> represents a rectangular drawing shape + with an additional set of lines. It can be used as a description for + a fixed point inside a drawing. + */ +published service CaptionShape +{ + /** the position and size is only used for the + caption area + */ + service com::sun::star::drawing::Shape; + + service com::sun::star::drawing::FillProperties; + + service com::sun::star::drawing::LineProperties; + + service com::sun::star::drawing::ShadowProperties; + + service com::sun::star::drawing::Text; + + service com::sun::star::drawing::RotationDescriptor; + + /** This is the radius of the caption area corners. + */ + [property] long CornerRadius; + + /** The caption point property specify the position of + the point that is captioned. A set of lines are + rendered from the caption area. + */ + [property] com::sun::star::awt::Point CaptionPoint; + + /** This property specifies the geometry of the line of a caption. + + @see CaptionType + */ + [property] short CaptionType; + + /** This property specifies if the escape angle of + the line of a caption is fixed or free. If this + is set to <false/>, the application can choose + the best possible angle. If not, the value in + <code>CaptionAngle</code> is used. + */ + [property] boolean CaptionIsFixedAngle; + + /** This property specifies the escape angle of + the line of a caption. + It is only used if <code>CaptionIsFixedAngle</code> + is set to <true/> + */ + [property] long CaptionAngle; + + /** This property specifies the distance between the + text area of the caption and the start of the line. + */ + [property] long CaptionGap; + + /** This property specifies the escape direction for the + line of a caption. + + @see CaptionEscapeDirection + */ + [property] long CaptionEscapeDirection; + + /** If this property is <true/>, the property <code>CaptionEscapeRelative</code> + is used, else the property <code>CaptionEscapeAbsolute</code> is used. + */ + [property] boolean CaptionIsEscapeRelative; + + /** This property specifies the relativ escape distance for + the line of a caption. + */ + [property] long CaptionEscapeRelative; + + /** This property specifies the absolut escape distance for + the line of a caption. + */ + [property] long CaptionEscapeAbsolute; + + /** This property specifies the length of the caption line. + */ + [property] long CaptionLineLength; + + /** If this property is <true/>, the application determines + the best possible length for the caption line. + */ + [property] boolean CaptionIsFitLineLength; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/CaptionType.idl b/offapi/com/sun/star/drawing/CaptionType.idl new file mode 100644 index 000000000000..df6506130f34 --- /dev/null +++ b/offapi/com/sun/star/drawing/CaptionType.idl @@ -0,0 +1,66 @@ +/************************************************************************* + * + * 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_drawing_CaptionType_idl__ +#define __com_sun_star_drawing_CaptionType_idl__ + +//============================================================================= + +module com { module sun { module star { module drawing { + +//============================================================================= +/** This constants specifies the geometry of the line of a <type>CaptionShape</type>. + + @see CaptionShape +*/ +published constants CaptionType +{ + //------------------------------------------------------------------------- + /** the caption line is a straight line from a caption area edge to the + caption point. + */ + const short straight = 0; + + //------------------------------------------------------------------------- + /** the caption line is the shortest line from the caption area edge to + the caption point. + */ + const short angled = 1; + + //------------------------------------------------------------------------- + /** the caption line is build up with a straight line from the caption area + edge, followed by the shortest line to the caption area point. + */ + const short connector = 2; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/CircleKind.idl b/offapi/com/sun/star/drawing/CircleKind.idl new file mode 100644 index 000000000000..5c037c5fe155 --- /dev/null +++ b/offapi/com/sun/star/drawing/CircleKind.idl @@ -0,0 +1,77 @@ +/************************************************************************* + * + * 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_drawing_CircleKind_idl__ +#define __com_sun_star_drawing_CircleKind_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: enum com::sun::star::drawing::CircleKind +/** This enumeration defines a circle. + */ +published enum CircleKind +{ + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::CircleKind::FULL + /** a full circle + */ + FULL, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::CircleKind::SECTION + /** a circle with a cut connected by a line + */ + SECTION, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::CircleKind::CUT + /** a circle with a cut connected by two lines + */ + CUT, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::CircleKind::ARC + /** a circle with an open cut + */ + ARC + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/ClosedBezierShape.idl b/offapi/com/sun/star/drawing/ClosedBezierShape.idl new file mode 100644 index 000000000000..7442c553439f --- /dev/null +++ b/offapi/com/sun/star/drawing/ClosedBezierShape.idl @@ -0,0 +1,89 @@ +/************************************************************************* + * + * 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_drawing_ClosedBezierShape_idl__ +#define __com_sun_star_drawing_ClosedBezierShape_idl__ + +#ifndef __com_sun_star_drawing_LineShape_idl__ +#include <com/sun/star/drawing/LineShape.idl> +#endif + +#ifndef __com_sun_star_drawing_LineProperties_idl__ +#include <com/sun/star/drawing/LineProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_FillProperties_idl__ +#include <com/sun/star/drawing/FillProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_PolyPolygonBezierDescriptor_idl__ +#include <com/sun/star/drawing/PolyPolygonBezierDescriptor.idl> +#endif + +#ifndef __com_sun_star_drawing_Text_idl__ +#include <com/sun/star/drawing/Text.idl> +#endif + +#ifndef __com_sun_star_drawing_ShadowProperties_idl__ +#include <com/sun/star/drawing/ShadowProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_RotationDescriptor_idl__ +#include <com/sun/star/drawing/RotationDescriptor.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** This service is for a closed bezier shape. + */ +published service ClosedBezierShape +{ + service com::sun::star::drawing::Shape; + + service com::sun::star::drawing::LineProperties; + + service com::sun::star::drawing::FillProperties; + + service com::sun::star::drawing::PolyPolygonBezierDescriptor; + + service com::sun::star::drawing::Text; + + service com::sun::star::drawing::ShadowProperties; + + service com::sun::star::drawing::RotationDescriptor; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/ColorMode.idl b/offapi/com/sun/star/drawing/ColorMode.idl new file mode 100644 index 000000000000..9eeb0ba08d6c --- /dev/null +++ b/offapi/com/sun/star/drawing/ColorMode.idl @@ -0,0 +1,79 @@ +/************************************************************************* + * + * 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_drawing_ColorMode_idl__ +#define __com_sun_star_drawing_ColorMode_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: enum com::sun::star::drawing::ColorMode +/** The <type>ColorMode</type> defines the output style of colors + for a graphic. + */ +published enum ColorMode +{ + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::ColorMode::STANDARD + /** the graphic is rendered in the default color style of the output + device, + */ + STANDARD, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::ColorMode::GREYS + /** the graphic is rendered in greyscales on the output device, + */ + GREYS, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::ColorMode::MONO + /** the graphic is rendered in black and white only, + */ + MONO, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::ColorMode::WATERMARK + /** the graphic is rendered in a watermark like style, + */ + WATERMARK + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/ConnectionType.idl b/offapi/com/sun/star/drawing/ConnectionType.idl new file mode 100644 index 000000000000..eaca9eacae7a --- /dev/null +++ b/offapi/com/sun/star/drawing/ConnectionType.idl @@ -0,0 +1,92 @@ +/************************************************************************* + * + * 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_drawing_ConnectionType_idl__ +#define __com_sun_star_drawing_ConnectionType_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: enum com::sun::star::drawing::ConnectionType +/** the direction where the + connection line leaves the connection point. + */ +published enum ConnectionType +{ + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::ConnectionType::AUTO + /** the connection point is chosen automatically, + */ + AUTO, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::ConnectionType::LEFT + /** the connection line leaves the connected object to the left, + */ + LEFT, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::ConnectionType::TOP + /** the connection line leaves the connected object from the top, + */ + TOP, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::ConnectionType::RIGHT + /** the connection line leaves the connected object to the right, + */ + RIGHT, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::ConnectionType::BOTTOM + /** the connection line leaves the connected object from the bottom, + */ + BOTTOM, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::ConnectionType::SPECIAL + /** not implemented, yet. + */ + SPECIAL + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/ConnectorProperties.idl b/offapi/com/sun/star/drawing/ConnectorProperties.idl new file mode 100644 index 000000000000..db86fca96f7a --- /dev/null +++ b/offapi/com/sun/star/drawing/ConnectorProperties.idl @@ -0,0 +1,82 @@ +/************************************************************************* + * + * 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_drawing_ConnectorProperties_idl__ +#define __com_sun_star_drawing_ConnectorProperties_idl__ + +#ifndef __com_sun_star_drawing_ConnectorType_idl__ +#include <com/sun/star/drawing/ConnectorType.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** This is a set of properties to describe the style for rendering connector. + */ +published service ConnectorProperties +{ + //------------------------------------------------------------------------- + + /** This property contains the kind of the connector. + */ + [property] com::sun::star::drawing::ConnectorType EdgeKind; + + //------------------------------------------------------------------------- + + /** This property contains the horizontal distance of node 1. + */ + [property] long EdgeNode1HorzDist; + + //------------------------------------------------------------------------- + + /** This property contains the vertical distance of node 1. + */ + [property] long EdgeNode1VertDist; + + //------------------------------------------------------------------------- + + /** This property contains the horizontal distance of node 2. + */ + [property] long EdgeNode2HorzDist; + + //------------------------------------------------------------------------- + + /** This property contains the vertical distance of node 2. + */ + [property] long EdgeNode2VertDist; + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/ConnectorShape.idl b/offapi/com/sun/star/drawing/ConnectorShape.idl new file mode 100644 index 000000000000..d76bea93345f --- /dev/null +++ b/offapi/com/sun/star/drawing/ConnectorShape.idl @@ -0,0 +1,152 @@ +/************************************************************************* + * + * 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_drawing_ConnectorShape_idl__ +#define __com_sun_star_drawing_ConnectorShape_idl__ + +#ifndef __com_sun_star_drawing_XConnectorShape_idl__ +#include <com/sun/star/drawing/XConnectorShape.idl> +#endif + +#ifndef __com_sun_star_drawing_ConnectorProperties_idl__ +#include <com/sun/star/drawing/ConnectorProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_Shape_idl__ +#include <com/sun/star/drawing/Shape.idl> +#endif + +#ifndef __com_sun_star_drawing_LineProperties_idl__ +#include <com/sun/star/drawing/LineProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_Text_idl__ +#include <com/sun/star/drawing/Text.idl> +#endif + +#ifndef __com_sun_star_drawing_ShadowProperties_idl__ +#include <com/sun/star/drawing/ShadowProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_RotationDescriptor_idl__ +#include <com/sun/star/drawing/RotationDescriptor.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** This service is for a <type>ConnectorShape</type>, a specialized <type>Shape</type>, + which can be connected to other <type>Shape</type>s or <type>GluePoint</type>s. + */ +published service ConnectorShape +{ + service com::sun::star::drawing::Shape; + + service com::sun::star::drawing::LineProperties; + + service com::sun::star::drawing::ConnectorProperties; + + service com::sun::star::drawing::ShadowProperties; + + service com::sun::star::drawing::Text; + + service com::sun::star::drawing::RotationDescriptor; + + //------------------------------------------------------------------------- + + /** this property either holds the shape that the start point of this + connector is connected to, or is empty when the start point of the + connector is not connected to a shape. + */ + [property] com::sun::star::drawing::XShape StartShape; + + //------------------------------------------------------------------------- + + /** this property holds the index of the glue point the start point of + this connector is glued on. + */ + [property] long StartGluePointIndex; + + //------------------------------------------------------------------------- + + /** this is the position of the connectors start point in 100th/mm. For + unconnected start points you can get and set the position. For + connected start points you can only get the position. + */ + [property] com::sun::star::awt::Point StartPosition; + + //------------------------------------------------------------------------- + + /** this property either holds the shape that the end point of this + connector is connected to, or is empty when the end point of the + connector is not connected to a shape. + */ + [property] com::sun::star::drawing::XShape EndShape; + + //------------------------------------------------------------------------- + + /** this property holds the index of the glue point the end point of + this connector is glued on. + */ + [property] com::sun::star::awt::Point EndPosition; + + //------------------------------------------------------------------------- + + /** this is the position of the connectors end point in 100th/mm. For + unconnected end points you can get and set the position. For + connected end points you can only get the position. + */ + [property] long EndGluePointIndex; + + //------------------------------------------------------------------------- + + /** This property contains the distance of line 1. + */ + [property] long EdgeLine1Delta; + + //------------------------------------------------------------------------- + + /** This property contains the distance of line 2. + */ + [property] long EdgeLine2Delta; + + //------------------------------------------------------------------------- + + /** This property contains the distance of line 3. + */ + [property] long EdgeLine3Delta; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/ConnectorType.idl b/offapi/com/sun/star/drawing/ConnectorType.idl new file mode 100644 index 000000000000..d289e2ba492c --- /dev/null +++ b/offapi/com/sun/star/drawing/ConnectorType.idl @@ -0,0 +1,78 @@ +/************************************************************************* + * + * 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_drawing_ConnectorType_idl__ +#define __com_sun_star_drawing_ConnectorType_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: enum com::sun::star::drawing::ConnectorType +/** The <type>ConnectorType</type> specifies the appearance of a connector. + */ +published enum ConnectorType +{ + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::ConnectorType::STANDARD + /** the connector is drawn with three lines, with the middle line + perpendicular to the other two + */ + STANDARD, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::ConnectorType::CURVE + /** the ConnectorShape is drawn as a curve + */ + CURVE, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::ConnectorType::LINE + /** the ConnectorShape is drawn as a straight line + */ + LINE, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::ConnectorType::LINES + /** the connector is drawn with three lines + */ + LINES + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/ControlShape.idl b/offapi/com/sun/star/drawing/ControlShape.idl new file mode 100644 index 000000000000..43055b54d26d --- /dev/null +++ b/offapi/com/sun/star/drawing/ControlShape.idl @@ -0,0 +1,61 @@ +/************************************************************************* + * + * 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_drawing_ControlShape_idl__ +#define __com_sun_star_drawing_ControlShape_idl__ + +#ifndef __com_sun_star_drawing_Shape_idl__ +#include <com/sun/star/drawing/Shape.idl> +#endif + +#ifndef __com_sun_star_drawing_XControlShape_idl__ +#include <com/sun/star/drawing/XControlShape.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** This service is for a <type>Shape</type> which contains a control. + <p> + @see Shape + @see XControlShape + */ +published service ControlShape +{ + service com::sun::star::drawing::Shape; + interface com::sun::star::drawing::XControlShape; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/CoordinateSequence.idl b/offapi/com/sun/star/drawing/CoordinateSequence.idl new file mode 100644 index 000000000000..f01c422745c8 --- /dev/null +++ b/offapi/com/sun/star/drawing/CoordinateSequence.idl @@ -0,0 +1,45 @@ +/************************************************************************* + * + * 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_drawing_CoordinateSequence_idl__ +#define __com_sun_star_drawing_CoordinateSequence_idl__ + + +//============================================================================= + +module com { module sun { module star { module drawing { + +//============================================================================= +/** +*/ +published typedef sequence<long> CoordinateSequence; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/CoordinateSequenceSequence.idl b/offapi/com/sun/star/drawing/CoordinateSequenceSequence.idl new file mode 100644 index 000000000000..e0bed624f8fe --- /dev/null +++ b/offapi/com/sun/star/drawing/CoordinateSequenceSequence.idl @@ -0,0 +1,48 @@ +/************************************************************************* + * + * 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_drawing_CoordinateSequenceSequence_idl__ +#define __com_sun_star_drawing_CoordinateSequenceSequence_idl__ + +#ifndef __com_sun_star_drawing_CoordinateSequence_idl__ +#include <com/sun/star/drawing/CoordinateSequence.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module drawing { + +//============================================================================= +/** +*/ +published typedef sequence<CoordinateSequence> CoordinateSequenceSequence; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/CustomShape.idl b/offapi/com/sun/star/drawing/CustomShape.idl new file mode 100644 index 000000000000..4ec4dbf7bf92 --- /dev/null +++ b/offapi/com/sun/star/drawing/CustomShape.idl @@ -0,0 +1,116 @@ +/************************************************************************* + * + * 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_drawing_CustomShape_idl__ +#define __com_sun_star_drawing_CustomShape_idl__ + +#ifndef __com_sun_star_drawing_Shape_idl__ +#include <com/sun/star/drawing/Shape.idl> +#endif + +#ifndef __com_sun_star_drawing_FillProperties_idl__ +#include <com/sun/star/drawing/FillProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_LineProperties_idl__ +#include <com/sun/star/drawing/LineProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_ShadowProperties_idl__ +#include <com/sun/star/drawing/ShadowProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_Text_idl__ +#include <com/sun/star/drawing/Text.idl> +#endif + +#ifndef __com_sun_star_drawing_RotationDescriptor_idl__ +#include <com/sun/star/drawing/RotationDescriptor.idl> +#endif + +#ifndef __com_sun_star_beans_PropertyValue_idl__ +#include <com/sun/star/beans/PropertyValue.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module drawing { + +//============================================================================= + +/** This service is for a CustomShape + */ +service CustomShape +{ + service com::sun::star::drawing::Shape; + + service com::sun::star::drawing::FillProperties; + + service com::sun::star::drawing::LineProperties; + + service com::sun::star::drawing::ShadowProperties; + + service com::sun::star::drawing::Text; + + service com::sun::star::drawing::RotationDescriptor; + + //------------------------------------------------------------------------- + /** This property contains the CustomShapeEngine service name that has to + be used for rendering. + */ + [property] string CustomShapeEngine; + + //------------------------------------------------------------------------- + /** This property can be used to store data that the CustomShapeEngine may + use for rendering + */ + [optional, property] string CustomShapeData; + + //------------------------------------------------------------------------- + /** This property describes the geometry of the CustomShape. The CustomShapeEngine + that is used should be able to get on with the content of this property. + + If the CustomShapeEngine property is "com.sun.star.drawing.EnhancedCustomShapeEngine", + then this property is containing properties as they are specified in the service + com.sun.star.drawing.EnhancedCustomShapeGeometry + */ + [optional, property] sequence<::com::sun::star::beans::PropertyValue> CustomShapeGeometry; + + //------------------------------------------------------------------------- + /** This property describes the URL to a replacement graphic that could + be displayed if the CustomShape engine is not available. + */ + [optional, property] string CustomShapeReplacementURL; + + //------------------------------------------------------------------------- +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/CustomShapeEngine.idl b/offapi/com/sun/star/drawing/CustomShapeEngine.idl new file mode 100644 index 000000000000..6df041ce1948 --- /dev/null +++ b/offapi/com/sun/star/drawing/CustomShapeEngine.idl @@ -0,0 +1,64 @@ +/************************************************************************* + * + * 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_drawing_CustomShapeEngine_idl__ +#define __com_sun_star_drawing_CustomShapeEngine_idl__ + +#ifndef __com_sun_star_lang_XInitialization_idl__ +#include <com/sun/star/lang/XInitialization.idl> +#endif + +#ifndef __com_sun_star_drawing_XCustomShapeEngine_idl__ +#include <com/sun/star/drawing/XCustomShapeEngine.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module drawing { + +//============================================================================= + +/** This service is for a CustomShape + */ +service CustomShapeEngine +{ + /** initializing the CustomShapeEngine + + */ + interface ::com::sun::star::lang::XInitialization; + + /** + + */ + interface com::sun::star::drawing::XCustomShapeEngine; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/DashStyle.idl b/offapi/com/sun/star/drawing/DashStyle.idl new file mode 100644 index 000000000000..2a4aded0e20e --- /dev/null +++ b/offapi/com/sun/star/drawing/DashStyle.idl @@ -0,0 +1,79 @@ +/************************************************************************* + * + * 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_drawing_DashStyle_idl__ +#define __com_sun_star_drawing_DashStyle_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: enum com::sun::star::drawing::DashStyle +/** This enumeration defines the style of a dash on a line. + */ +published enum DashStyle +{ + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::DashStyle::RECT + /** the dash is a rectangle + */ + RECT, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::DashStyle::ROUND + /** the dash is a point + */ + ROUND, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::DashStyle::RECTRELATIVE + /** the dash is a rectangle, with the size of the dash given in + relation to the length of the line + */ + RECTRELATIVE, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::DashStyle::ROUNDRELATIVE + /** the dash is a point, with the size of the dash given in relation + to the length of the line + */ + ROUNDRELATIVE + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/DashTable.idl b/offapi/com/sun/star/drawing/DashTable.idl new file mode 100644 index 000000000000..84c42b794f93 --- /dev/null +++ b/offapi/com/sun/star/drawing/DashTable.idl @@ -0,0 +1,64 @@ +/************************************************************************* + * + * 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_drawing_DashTable_idl__ +#define __com_sun_star_drawing_DashTable_idl__ + +#ifndef __com_sun_star_container_XNameContainer_idl__ +#include <com/sun/star/container/XNameContainer.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** this is a container for <type>LineDash</type>s + + <p>It is used for example to access the <type>LineDash</type>s that + are used inside a document. + + @see DrawingDocumentFactory + @see LineDash +*/ +published service DashTable +{ + /** this container lets you access the <type>LineDash</type>s that + are indexed with a name. + + <p>Note: You can add new entries for later use, but you cannot + remove entries that are used inside the document. + */ + interface com::sun::star::container::XNameContainer; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/Defaults.idl b/offapi/com/sun/star/drawing/Defaults.idl new file mode 100644 index 000000000000..948b8c769649 --- /dev/null +++ b/offapi/com/sun/star/drawing/Defaults.idl @@ -0,0 +1,80 @@ +/************************************************************************* + * + * 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_drawing_Defaults_idl__ +#define __com_sun_star_drawing_Defaults_idl__ + +#ifndef __com_sun_star_drawing_TextProperties_idl__ +#include <com/sun/star/drawing/TextProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_FillProperties_idl__ +#include <com/sun/star/drawing/FillProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_LineProperties_idl__ +#include <com/sun/star/drawing/LineProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_ShadowProperties_idl__ +#include <com/sun/star/drawing/ShadowProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_ConnectorProperties_idl__ +#include <com/sun/star/drawing/ConnectorProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_MeasureProperties_idl__ +#include <com/sun/star/drawing/MeasureProperties.idl> +#endif + + +//============================================================================= + +module com { module sun { module star { module drawing { + +//============================================================================= + +/** This is a set of properties to access the defaults of a drawing document + + @see DrawingDocumentFactory + */ +published service Defaults +{ + service TextProperties; + service LineProperties; + service FillProperties; + service ShadowProperties; + service ConnectorProperties; + service MeasureProperties; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/Direction3D.idl b/offapi/com/sun/star/drawing/Direction3D.idl new file mode 100644 index 000000000000..c346274599f6 --- /dev/null +++ b/offapi/com/sun/star/drawing/Direction3D.idl @@ -0,0 +1,64 @@ +/************************************************************************* + * + * 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_drawing_Direction3D_idl__ +#define __com_sun_star_drawing_Direction3D_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: struct com::sun::star::drawing::Direction3D +/** specifies a 3-dimensional vector. + */ +published struct Direction3D +{ + // DocMerge: empty anyway + double DirectionX; + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR Direction3D::DirectionY + + // DocMerge: empty anyway + double DirectionY; + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR Direction3D::DirectionZ + + // DocMerge: empty anyway + double DirectionZ; + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/DocumentSettings.idl b/offapi/com/sun/star/drawing/DocumentSettings.idl new file mode 100644 index 000000000000..29aee7f3b951 --- /dev/null +++ b/offapi/com/sun/star/drawing/DocumentSettings.idl @@ -0,0 +1,109 @@ +/************************************************************************* + * + * 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_drawing_DocumentSettings_idl__ +#define __com_sun_star_drawing_DocumentSettings_idl__ + +#ifndef __com_sun_star_document_Settings_idl__ +#include <com/sun/star/document/Settings.idl> +#endif + +#ifndef __com_sun_star_document_HeaderFooterSettings_idl__ +#include <com/sun/star/document/HeaderFooterSettings.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module drawing { + +//============================================================================= + +/** describes properties that apply to the whole drawing document. + */ +published service DocumentSettings +{ + service com::sun::star::document::Settings; + + //------------------------------------------------------------------------- + /** This service configures the header and footer settings during print + */ + [optional] service com::sun::star::document::HeaderFooterSettings; + + //------------------------------------------------------------------------- + + /** provides access to the properties. + */ + interface com::sun::star::beans::XPropertySet; + + //------------------------------------------------------------------------- + + /** This is the default logical measure unit that is used for string + formatings inside the document, f.e. the measure text + */ + [optional, property] short MeasureUnit; + + /** is the numerator for the logical scale of the document + */ + [optional, property] long ScaleNumerator; + + /** is the denominator for the logical scale of the document + */ + [optional, property] long ScaleDenominator; + + // Note: the following properties exist also in + // css::presentation::DocumentSettings + + // ------------------------------------------------------------ + + /** enables or disables the fitting of the page to the printable + area during print + */ + [optional, property] boolean IsPrintFitPage; + + /** if this is true and the paper size for printing is larger than + the paper size of the printer than the content is tiled over + multiple pages. + */ + [optional, property] boolean IsPrintTilePage; + + /** is the number format used for page number fields + */ + [optional, property] long PageNumberFormat; + + /** If this is true, the distance between two paragraphs is + the sum of ParaTopMargin of the previous and ParaBottomMargin of + the next paragraph. If false, only the greater of the two is + choosen. + */ + [optional, property] boolean ParagraphSummation; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/drawing/DoubleSequence.idl b/offapi/com/sun/star/drawing/DoubleSequence.idl new file mode 100644 index 000000000000..b58c6bcad3d4 --- /dev/null +++ b/offapi/com/sun/star/drawing/DoubleSequence.idl @@ -0,0 +1,44 @@ +/************************************************************************* + * + * 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_drawing_DoubleSequence_idl__ +#define __com_sun_star_drawing_DoubleSequence_idl__ + + +//============================================================================= + +module com { module sun { module star { module drawing { + +//============================================================================= +/** +*/ +published typedef sequence<double> DoubleSequence; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/drawing/DoubleSequenceSequence.idl b/offapi/com/sun/star/drawing/DoubleSequenceSequence.idl new file mode 100644 index 000000000000..f825d4805031 --- /dev/null +++ b/offapi/com/sun/star/drawing/DoubleSequenceSequence.idl @@ -0,0 +1,48 @@ +/************************************************************************* + * + * 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_drawing_DoubleSequenceSequence_idl__ +#define __com_sun_star_drawing_DoubleSequenceSequence_idl__ + +#ifndef __com_sun_star_drawing_DoubleSequence_idl__ +#include <com/sun/star/drawing/DoubleSequence.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module drawing { + +//============================================================================= +/** +*/ +published typedef sequence<DoubleSequence> DoubleSequenceSequence; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/DrawPage.idl b/offapi/com/sun/star/drawing/DrawPage.idl new file mode 100644 index 000000000000..44d534362e84 --- /dev/null +++ b/offapi/com/sun/star/drawing/DrawPage.idl @@ -0,0 +1,88 @@ +/************************************************************************* + * + * 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_drawing_DrawPage_idl__ +#define __com_sun_star_drawing_DrawPage_idl__ + +#ifndef __com_sun_star_drawing_GenericDrawPage_idl__ +#include <com/sun/star/drawing/GenericDrawPage.idl> +#endif + +#ifndef __com_sun_star_drawing_XMasterPageTarget_idl__ +#include <com/sun/star/drawing/XMasterPageTarget.idl> +#endif + +#ifndef __com_sun_star_form_XFormsSupplier_idl__ +#include <com/sun/star/form/XFormsSupplier.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: service com::sun::star::drawing::DrawPage +/** This service specifies a page for the actual draw pages to contain + the drawings. + @see GenericDrawPage + @see DrawPages + */ +published service DrawPage +{ + + + // DocMerge from xml: service com::sun::star::drawing::DrawPage: service com::sun::star::drawing::GenericDrawPage + /** This service describes the base functionality that every + draw/master page has. + */ + service com::sun::star::drawing::GenericDrawPage; + + + // DocMerge from xml: service com::sun::star::drawing::DrawPage: interface com::sun::star::drawing::XMasterPageTarget + /** provides the link to a <type>MasterPage</type>. + */ + interface com::sun::star::drawing::XMasterPageTarget; + + /** provides access to the hierarchy of form components belonging to the draw page. + + <p>Every draw page may contain a form layer - that is, a hierarchy of form elements. The layer can be + accessed using this interface.</p> + + @see com.sun.star.form.FormComponent + @see com.sun.star.form.FormComponents + @see com.sun.star.form.Forms + */ + [optional] interface com::sun::star::form::XFormsSupplier; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/DrawPages.idl b/offapi/com/sun/star/drawing/DrawPages.idl new file mode 100644 index 000000000000..f65fac91c79e --- /dev/null +++ b/offapi/com/sun/star/drawing/DrawPages.idl @@ -0,0 +1,80 @@ +/************************************************************************* + * + * 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_drawing_DrawPages_idl__ +#define __com_sun_star_drawing_DrawPages_idl__ + +#ifndef __com_sun_star_drawing_XDrawPages_idl__ +#include <com/sun/star/drawing/XDrawPages.idl> +#endif + +#ifndef __com_sun_star_drawing_XDrawPageSummarizer_idl__ +#include <com/sun/star/drawing/XDrawPageSummarizer.idl> +#endif + +#ifndef __com_sun_star_drawing_XDrawPageExpander_idl__ +#include <com/sun/star/drawing/XDrawPageExpander.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: service com::sun::star::drawing::DrawPages +/** provides access to a container of <type>DrawPage</type>s + and makes it possible for you to manipulate them. + + @see XDrawPagesSupplier + @see DrawingDocument + */ +published service DrawPages +{ + /** lets you access and create <type>DrawPage</type>s + */ + interface com::sun::star::drawing::XDrawPages; + + + /** This optional interface makes it possible to summarize the + pages in this collection. + */ + [optional] interface com::sun::star::drawing::XDrawPageSummarizer; + + + /** This optional interface can be used for expanding a summarized page. + */ + [optional] interface com::sun::star::drawing::XDrawPageExpander; + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/DrawViewMode.idl b/offapi/com/sun/star/drawing/DrawViewMode.idl new file mode 100644 index 000000000000..497670828fd3 --- /dev/null +++ b/offapi/com/sun/star/drawing/DrawViewMode.idl @@ -0,0 +1,72 @@ +/************************************************************************* + * + * 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_drawing_DrawViewMode_idl__ +#define __com_sun_star_drawing_DrawViewMode_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: enum com::sun::star::drawing::DrawViewMode +/** This enumeration specifies the viewmode of a view in a presentation + document. + + @deprecated + */ +published enum DrawViewMode +{ + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::DrawViewMode::DRAW + /** The view shows the drawing pages. + */ + DRAW, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::DrawViewMode::NOTES + /** The view shows the notes pages. + */ + NOTES, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::DrawViewMode::HANDOUT + /** The view shows the handout pages, + */ + HANDOUT + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/drawing/DrawingDocument.idl b/offapi/com/sun/star/drawing/DrawingDocument.idl new file mode 100644 index 000000000000..f0335dbd4c10 --- /dev/null +++ b/offapi/com/sun/star/drawing/DrawingDocument.idl @@ -0,0 +1,54 @@ +/************************************************************************* + * + * 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_drawing_DrawingDocument_idl__ +#define __com_sun_star_drawing_DrawingDocument_idl__ + +#ifndef __com_sun_star_drawing_GenericDrawingDocument_idl__ +#include <com/sun/star/drawing/GenericDrawingDocument.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** specifies a document which consists of multiple pages + with drawings. + */ +service DrawingDocument +{ + /** this base service describes the whole functionality of such DrawingDocument. */ + service GenericDrawingDocument; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/DrawingDocumentDrawView.idl b/offapi/com/sun/star/drawing/DrawingDocumentDrawView.idl new file mode 100644 index 000000000000..38abff541b14 --- /dev/null +++ b/offapi/com/sun/star/drawing/DrawingDocumentDrawView.idl @@ -0,0 +1,203 @@ +/************************************************************************* + * + * 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_drawing_DrawingDocumentDrawView_idl__ +#define __com_sun_star_drawing_DrawingDocumentDrawView_idl__ + +#ifndef __com_sun_star_drawing_XDrawView_idl__ +#include <com/sun/star/drawing/XDrawView.idl> +#endif + +#ifndef __com_sun_star_beans_XPropertySet_idl__ +#include <com/sun/star/beans/XPropertySet.idl> +#endif + +#ifndef __com_sun_star_frame_Controller_idl__ +#include <com/sun/star/frame/Controller.idl> +#endif + +#ifndef __com_sun_star_view_XSelectionSupplier_idl__ +#include <com/sun/star/view/XSelectionSupplier.idl> +#endif + +#ifndef __com_sun_star_lang_XServiceInfo_idl__ +#include <com/sun/star/lang/XServiceInfo.idl> +#endif + +#ifndef __com_sun_star_drawing_XDrawPage_idl__ +#include <com/sun/star/drawing/XDrawPage.idl> +#endif + +#ifndef __com_sun_star_awt_XWindow_idl__ +#include <com/sun/star/awt/XWindow.idl> +#endif + +#ifndef __com_sun_star_awt_Point_idl__ +#include <com/sun/star/awt/Point.idl> +#endif + +//============================================================================= +module com { module sun { module star { module view { + published interface XFormLayerAccess; +}; }; }; }; + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** This componend integrates a view to a <type>DrawPage</type>s or + <type>MasterPage</type> from a <type>DrawingDocument</type>. + */ +published service DrawingDocumentDrawView +{ + //------------------------------------------------------------------------- + + /** this services offers the integration of this component into the + desktop. + */ + service com::sun::star::frame::Controller; + + //------------------------------------------------------------------------- + + /** lets you access the window for this view + + @since OOo 1.1.2 + */ + [optional] interface com::sun::star::awt::XWindow; + + /** let's you access the view part of the form layer contained in the document's view + */ + [optional] interface com::sun::star::view::XFormLayerAccess; + + //------------------------------------------------------------------------- + + /** lets you set/get the current page displayed by this + view. + */ + interface com::sun::star::drawing::XDrawView; + + //------------------------------------------------------------------------- + + + /** lets you access the properties of this service. + */ + interface com::sun::star::beans::XPropertySet; + + //------------------------------------------------------------------------- + + + /** gives you access to the selected entities of this + view. + */ + interface com::sun::star::view::XSelectionSupplier; + + + //------------------------------------------------------------------------- + + /** provides the names of the services implemented by + this instance. + */ + interface com::sun::star::lang::XServiceInfo; + + //------------------------------------------------------------------------- + + /** If the view is in masterpage mode, the view shows the masterpages + of this model. + */ + [property] boolean IsMasterPageMode; + + //------------------------------------------------------------------------- + + /** If the view is in layer mode, the user can modify the layer of the + model of this view in the user interface. + */ + [property] boolean IsLayerMode; + + + //------------------------------------------------------------------------- + + /** This is the drawing page that is currently visible. + */ + [property] XDrawPage CurrentPage; + + //------------------------------------------------------------------------- + + /** This is the area that is currently visible. + */ + [readonly, property] com::sun::star::awt::Rectangle VisibleArea; + + //------------------------------------------------------------------------- + + /** This property defines the zoom type for the document. + @see com::sun::star::view::DocumentZoomType + + Note: After setting other types then + <member scope="com::sun::star::view::DocumentZoomType">BY_VALUE</member>, + implementations may calculate the required zoom value and set the type + to <member scope="com::sun::star::view::DocumentZoomType">BY_VALUE</member> + afterwards. + + @since OOo 1.1.2 + */ + [optional, property] short ZoomType; + + //------------------------------------------------------------------------- + + /** Defines the zoom value to use. + Valid only if the ZoomType is set to + <member scope="com::sun::star::view::DocumentZoomType">BY_VALUE</member>. + + @since OOo 1.1.2 + */ + [optional, property] short ZoomValue; + + //------------------------------------------------------------------------- + + /** defines the offset from the top left position of the displayed page + to the top left position of the view area in 100th/mm. + + @since OOo 1.1.2 + */ + [optional, property] com::sun::star::awt::Point ViewOffset; + + /** The sub controller takes over view specific handling of properties, + the selection, and the current page/slide. + + The following line is commented because XDrawSubController is not + (yet) published and the IDL compiler does not allow that. + + [optional, property] ::com::sun::star::drawing::XDrawSubController SubController; + */ +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/DrawingDocumentFactory.idl b/offapi/com/sun/star/drawing/DrawingDocumentFactory.idl new file mode 100644 index 000000000000..a07fba53ab8e --- /dev/null +++ b/offapi/com/sun/star/drawing/DrawingDocumentFactory.idl @@ -0,0 +1,54 @@ +/************************************************************************* + * + * 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_drawing_DrawingDocumentFactory_idl__ +#define __com::sun::star::drawing_DrawingDocumentFactory_idl__ + +#ifndef __com_sun_star_lang_XMultiServiceFactory_idl__ +#include <com/sun/star/lang/XMultiServiceFactory.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** @deprecated Pleas use the factory interface of the service GenericDrawingDocument. + */ +published service DrawingDocumentFactory +{ + /** @deprecated */ + interface com::sun::star::lang::XMultiServiceFactory; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/EllipseShape.idl b/offapi/com/sun/star/drawing/EllipseShape.idl new file mode 100644 index 000000000000..cdcbb7cf8676 --- /dev/null +++ b/offapi/com/sun/star/drawing/EllipseShape.idl @@ -0,0 +1,105 @@ +/************************************************************************* + * + * 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_drawing_EllipseShape_idl__ +#define __com_sun_star_drawing_EllipseShape_idl__ + +#ifndef __com_sun_star_drawing_Shape_idl__ +#include <com/sun/star/drawing/Shape.idl> +#endif + +#ifndef __com_sun_star_drawing_LineProperties_idl__ +#include <com/sun/star/drawing/LineProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_FillProperties_idl__ +#include <com/sun/star/drawing/FillProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_Text_idl__ +#include <com/sun/star/drawing/Text.idl> +#endif + +#ifndef __com_sun_star_drawing_ShadowProperties_idl__ +#include <com/sun/star/drawing/ShadowProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_RotationDescriptor_idl__ +#include <com/sun/star/drawing/RotationDescriptor.idl> +#endif + +#ifndef __com_sun_star_drawing_CircleKind_idl__ +#include <com/sun/star/drawing/CircleKind.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** This service is for an ellipse or circle shape. + */ +published service EllipseShape +{ + service com::sun::star::drawing::Shape; + + service com::sun::star::drawing::LineProperties; + + service com::sun::star::drawing::FillProperties; + + service com::sun::star::drawing::Text; + + service com::sun::star::drawing::ShadowProperties; + + service com::sun::star::drawing::RotationDescriptor; + + //------------------------------------------------------------------------- + + /** This is the kind of circle. + */ + [property] com::sun::star::drawing::CircleKind CircleKind; + + //------------------------------------------------------------------------- + + /** If the kind specifies an open circle, this is the start angle. + */ + [property] long CircleStartAngle; + + //------------------------------------------------------------------------- + + /** If the kind specifies an open circle, this is the end angle. + */ + [property] long CircleEndAngle; + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/EnhancedCustomShapeAdjustmentValue.idl b/offapi/com/sun/star/drawing/EnhancedCustomShapeAdjustmentValue.idl new file mode 100644 index 000000000000..f6a755e15827 --- /dev/null +++ b/offapi/com/sun/star/drawing/EnhancedCustomShapeAdjustmentValue.idl @@ -0,0 +1,58 @@ +/************************************************************************* + * + * 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_drawing_EnhancedCustomShapeAdjustmentValue_idl__ +#define __com_sun_star_drawing_EnhancedCustomShapeAdjustmentValue_idl__ + +#ifndef __com_sun_star_beans_PropertyState_idl__ +#include <com/sun/star/beans/PropertyState.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module drawing { + +//============================================================================= + +/** specifies a single AdjustmentValue + */ +struct EnhancedCustomShapeAdjustmentValue +{ + /** the any can be of type long or double + */ + any Value; + + /** + */ + ::com::sun::star::beans::PropertyState State; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/EnhancedCustomShapeExtrusion.idl b/offapi/com/sun/star/drawing/EnhancedCustomShapeExtrusion.idl new file mode 100644 index 000000000000..c34304f03d18 --- /dev/null +++ b/offapi/com/sun/star/drawing/EnhancedCustomShapeExtrusion.idl @@ -0,0 +1,176 @@ +/************************************************************************* + * + * 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_drawing_EnhancedCustomShapeExtrusion_idl__ +#define __com_sun_star_drawing_EnhancedCustomShapeExtrusion_idl__ + +#ifndef __com_sun_star_awt_Size_idl__ +#include <com/sun/star/awt/Size.idl> +#endif +#ifndef __com_sun_star_awt_Point_idl__ +#include <com/sun/star/awt/Point.idl> +#endif +#ifndef __com_sun_star_beans_PropertyValue_idl__ +#include <com/sun/star/beans/PropertyValue.idl> +#endif +#ifndef __com_sun_star_drawing_Position3D_idl__ +#include <com/sun/star/drawing/Position3D.idl> +#endif +#ifndef __com_sun_star_drawing_Direction3D_idl__ +#include <com/sun/star/drawing/Direction3D.idl> +#endif +#ifndef __com_sun_star_drawing_ProjectionMode_idl__ +#include <com/sun/star/drawing/ProjectionMode.idl> +#endif +#ifndef __com_sun_star_drawing_ShadeMode_idl__ +#include <com/sun/star/drawing/ShadeMode.idl> +#endif +#ifndef __com_sun_star_drawing_EnhancedCustomShapeParameterPair_idl__ +#include <com/sun/star/drawing/EnhancedCustomShapeParameterPair.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module drawing { + +//============================================================================= +/** + This service may be represented by a ::com::sun::star::beans::PropertyValue []. +*/ + +service EnhancedCustomShapeExtrusion +{ + /** This property specifies if extrusion is displayed. The default for this property + is "false" + */ + [optional, property] boolean Extrusion; + + /** This attribute specifies the brightness of a scene in percent. + */ + [optional, property] double Brightness; + + /** The first value of EnhancedCustomShapeParameterPair specifies the depth of the + extrusion in 1/100 mm. The second value (0.0 to 1.0) specifies the fraction of + the extrusion that lies before the shape, a value of 0 is default. + */ + [optional, property] ::com::sun::star::drawing::EnhancedCustomShapeParameterPair Depth; + + /** This attribute specifies the amount of diffusion reflected by the shape + in percent + */ + [optional, property] double Diffusion; + + /** Specifies the number of line segments that should be used to display curved surfaces. + The higher the number the more line segments are used. + */ + [optional, property] long NumberOfLineSegments; + + /** Specifies if the front face of the extrusion responds to lightning changes. + */ + [optional, property] boolean LightFace; + + /** Specifies if the primary light is harsh. + */ + [optional, property] boolean FirstLightHarsh; + + /** Specifies if the secondary light is harsh. + */ + [optional, property] boolean SecondLightHarsh; + + /** Specifies the intensity for the first light in percent. + */ + [optional, property] double FirstLightLevel; + + /** Specifies the intensity for the second light in percent. + */ + [optional, property] double SecondLightLevel; + + /** Specifies the direction of the first light. + */ + [optional, property] ::com::sun::star::drawing::Direction3D FirstLightDirection; + + /** Specifies the direction of the second light. + */ + [optional, property] ::com::sun::star::drawing::Direction3D SecondLightDirection; + + /** Specifies if the surface of the extrusion object looks like metal. + */ + [optional, property] boolean Metal; + + /** This property defines the shade mode. + */ + [optional, property] ::com::sun::star::drawing::ShadeMode ShadeMode; + + /** This attributes specifies the rotation angle about the x-axis in grad. + The order of rotation is: z-axis, y-axis and then x-axis. The z-axis is + specified by the draw:rotate-angle. + */ + [optional, property] ::com::sun::star::drawing::EnhancedCustomShapeParameterPair RotateAngle; + + /** This attribute specifies the position of the rotate center + in terms of shape size fractions, if the property is omitted, then + the geometrical center of the shape is used (this is the default). + */ + [optional, property] ::com::sun::star::drawing::Direction3D RotationCenter; + + /** The draw:extrusion-shininess specifies the shininess of a mirror in percent. + */ + [optional, property] double Shininess; + + /** The first value of the draw:extrusion-skew attribute specifies the skew amount of + an extrusion in percent. The second parameter specifies the skew-angle. Skew settings + are only applied if the attribute ProjectionMode is ProjectionMode_PARALLEL. + */ + [optional, property] ::com::sun::star::drawing::EnhancedCustomShapeParameterPair Skew; + + /** This attribute specifies the specularity of an extrusion object in percent. + */ + [optional, property] double Specularity; + + /** This property defines the projection mode. + */ + [optional, property] com::sun::star::drawing::ProjectionMode ProjectionMode; + + /** This attribute specifies the viewpoint of the observer. + */ + [optional, property] ::com::sun::star::drawing::Position3D ViewPoint; + + /** This attribute specifies the origin within the bounding box of the + shape in terms of the shape size fractions. + */ + [optional, property] ::com::sun::star::drawing::EnhancedCustomShapeParameterPair Origin; + + /** This attribute specifies if the "SecondFillColor" is used as extrusion color + */ + [optional, property] boolean ExtrusionColor; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/EnhancedCustomShapeGeometry.idl b/offapi/com/sun/star/drawing/EnhancedCustomShapeGeometry.idl new file mode 100644 index 000000000000..16f3a3815c92 --- /dev/null +++ b/offapi/com/sun/star/drawing/EnhancedCustomShapeGeometry.idl @@ -0,0 +1,119 @@ +/************************************************************************* + * + * 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_drawing_EnhancedCustomShapeGeometry_idl__ +#define __com_sun_star_drawing_EnhancedCustomShapeGeometry_idl__ + +#ifndef __com_sun_star_awt_Rectangle_idl__ +#include <com/sun/star/awt/Rectangle.idl> +#endif +#ifndef __com_sun_star_beans_PropertyValue_idl__ +#include <com/sun/star/beans/PropertyValue.idl> +#endif +#ifndef __com_sun_star_beans_PropertyValues_idl__ +#include <com/sun/star/beans/PropertyValues.idl> +#endif +#ifndef __com_sun_star_drawing_EnhancedCustomShapeHandle_idl__ +#include <com/sun/star/drawing/EnhancedCustomShapeHandle.idl> +#endif +#ifndef __com_sun_star_drawing_EnhancedCustomShapeAdjustmentValue_idl__ +#include <com/sun/star/drawing/EnhancedCustomShapeAdjustmentValue.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module drawing { + +//============================================================================= +/** + This service may be represented by a ::com::sun::star::beans::PropertyValue []. +*/ + +service EnhancedCustomShapeGeometry +{ + /** + The Type attribute contains the name of a shape type. This name can be + used to offer specialized user interfaces for certain classes of shapes, like + for arrows, smileys, etc. The shape type is rendering engine dependent and does + not influence the geometry of the shape. If the value of the draw:type + attribute is non-primitive, then no shape type is available. + */ + [property] string Type; + + /** This property describes the user space of the shape in its canonical form + */ + [optional, property] ::com::sun::star::awt::Rectangle ViewBox; + + /** This property specifies if the orientation of the shape is horizontal mirrored. + */ + [optional, property] boolean MirroredX; + + /** This property specifies if the orientation of the shape is vertical mirrored. + */ + [optional, property] boolean MirroredY; + + /** This property specifies the text rotation angle in degrees. The text rotation is added + to the shape geometry rotation. + */ + [optional, property] double TextRotateAngle; + + /** This property specifies a sequence of Adjustment values. + */ + [optional, property] sequence<::com::sun::star::drawing::EnhancedCustomShapeAdjustmentValue> AdjustmentValues; + + /** This property sequence is including the extrusion description, the properties + are as same as specified in the service com::sun::star:drawing::EnhancedCustomShapeExtrusion + */ + [optional, property] sequence<::com::sun::star::beans::PropertyValue> Extrusion; + + /** This property sequence is including the path description, the properties + are as same as specified in the service com::sun::star:drawing::EnhancedCustomShapePath + */ + [optional, property] sequence<::com::sun::star::beans::PropertyValue> Path; + + /** This property sequence is including the textpath description, the properties + are as same as specified in the service com::sun::star:drawing::EnhancedCustomShapeTextPath + */ + [optional, property] sequence<::com::sun::star::beans::PropertyValue> TextPath; + + /** This property is describing the equations that are used, each equation can be referenced + by com::sun::star::drawing::EnhancedCustomShapeParameter which are often used in Path, Extrusion + and or Handle descriptions. + */ + [optional, property] sequence<string> Equations; + + /** This property is describing the interaction handles that are used, each inner property sequence + is having the same properties as they are specified in the service com::sun::star:drawing::EnhancedCustomShapeHandle + */ + [optional, property] sequence<::com::sun::star::beans::PropertyValues> Handles; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/EnhancedCustomShapeGluePointType.idl b/offapi/com/sun/star/drawing/EnhancedCustomShapeGluePointType.idl new file mode 100644 index 000000000000..bda5c034d903 --- /dev/null +++ b/offapi/com/sun/star/drawing/EnhancedCustomShapeGluePointType.idl @@ -0,0 +1,64 @@ +/************************************************************************* + * + * 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_drawing_EnhancedCustomShapeGluePointType_idl__ +#define __com_sun_star_drawing_EnhancedCustomShapeGluePointType_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** defines which gluepoints are being offered by the EnhancedCustomShape + */ +constants EnhancedCustomShapeGluePointType +{ + /** no gluepoints are offered + */ + const short NONE = 0; + + /** gluepoints are offered for each segment + */ + const short SEGMENTS = 1; + + /** only glue points of the GluePoints property from the + com::sun:star::drawing::EnhancedCustomShapePath are offered + */ + const short CUSTOM = 2; + + /** standard top, left, right, bottom glue points are offered + */ + const short RECT = 3; + }; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/EnhancedCustomShapeHandle.idl b/offapi/com/sun/star/drawing/EnhancedCustomShapeHandle.idl new file mode 100644 index 000000000000..d5e8420fc32f --- /dev/null +++ b/offapi/com/sun/star/drawing/EnhancedCustomShapeHandle.idl @@ -0,0 +1,121 @@ +/************************************************************************* + * + * 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_drawing_EnhancedCustomShapeHandle_idl__ +#define __com_sun_star_drawing_EnhancedCustomShapeHandle_idl__ + +#ifndef __com_sun_star_drawing_EnhancedCustomShapeParameterPair_idl__ +#include <com/sun/star/drawing/EnhancedCustomShapeParameterPair.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module drawing { + +//============================================================================= + +/** + This service may be represented by a ::com::sun::star::beans::PropertyValue []. +*/ + +service EnhancedCustomShapeHandle +{ + /** Specifies if the x position of the handle is mirrored. + */ + [optional, property] boolean MirroredX; + + /** Specifies if the y position of the handle is mirrored. + */ + [optional, property] boolean MirroredY; + + /** Specifies if the handle directions are swapped if the shape is taller than wide. + */ + [optional, property] boolean Switched; + + /** If the property Polar is set, then the first value specifies the radius and the second + parameter the angle of the handle. Otherwise, if the handle is not polar, the first parameter + specifies the horizontal handle position, the vertical handle position is described by the + second parameter. + */ + [optional, property] com::sun::star::drawing::EnhancedCustomShapeParameterPair Position; + + /** If this attribute is set, the handle is a polar handle. The property specifies the center + position of the handle. If this attribute is set, the attributes RangeX and RangeY are ignored, + instead the attribute RadiusRange is used. + */ + [optional, property] ::com::sun::star::drawing::EnhancedCustomShapeParameterPair Polar; + + /** RefX, if this attribute is set, it specifies the index of the adjustment + value which is connected to the horizontal position of the handle + */ + [optional, property] long RefX; + + /** RefY, if this attribute is set, it specifies the index of the adjustment + value which is connected to the vertical position of the handle + */ + [optional, property] long RefY; + + /** RefAngle, if this attribute is set, it specifies the index of the adjustment + value which is connected to the angle of the handle + */ + [optional, property] long RefAngle; + + /** RefR, if this attribute is set, it specifies the index of the adjustment + value which is connected to the radius of the handle + */ + [optional, property] long RefR; + + /** If the attribute RangeXMinimum is set, it specifies the horizontal minimum range of the handle. + */ + [optional, property] ::com::sun::star::drawing::EnhancedCustomShapeParameter RangeXMinimum; + + /** If the attribute RangeXMaximum is set, it specifies the horizontal maximum range of the handle. + */ + [optional, property] ::com::sun::star::drawing::EnhancedCustomShapeParameter RangeXMaximum; + + /** If the attribute RangeYMinimum is set, it specifies the vertical minimum range of the handle. + */ + [optional, property] ::com::sun::star::drawing::EnhancedCustomShapeParameter RangeYMinimum; + + /** If the attribute RangeYMaximum is set, it specifies the vertical maximum range of the handle. + */ + [optional, property] ::com::sun::star::drawing::EnhancedCustomShapeParameter RangeYMaximum; + + /** If this attribute is set, it specifies the minimum radius range that can be used for a polar handle. + */ + [optional, property] ::com::sun::star::drawing::EnhancedCustomShapeParameter RadiusRangeMinimum; + + /** If this attribute is set, it specifies the maximum radius range that can be used for a polar handle. + */ + [optional, property] ::com::sun::star::drawing::EnhancedCustomShapeParameter RadiusRangeMaximum; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/EnhancedCustomShapeParameter.idl b/offapi/com/sun/star/drawing/EnhancedCustomShapeParameter.idl new file mode 100644 index 000000000000..b1e78d4333cf --- /dev/null +++ b/offapi/com/sun/star/drawing/EnhancedCustomShapeParameter.idl @@ -0,0 +1,54 @@ +/************************************************************************* + * + * 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_drawing_EnhancedCustomShapeParameter_idl__ +#define __com_sun_star_drawing_EnhancedCustomShapeParameter_idl__ + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** specifies a single value which is used with EnhancedCustomShapes + */ +struct EnhancedCustomShapeParameter +{ + /** the any can be of type long or double + */ + any Value; + + /** + */ + short Type; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/EnhancedCustomShapeParameterPair.idl b/offapi/com/sun/star/drawing/EnhancedCustomShapeParameterPair.idl new file mode 100644 index 000000000000..b454950bf1fe --- /dev/null +++ b/offapi/com/sun/star/drawing/EnhancedCustomShapeParameterPair.idl @@ -0,0 +1,56 @@ +/************************************************************************* + * + * 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_drawing_EnhancedCustomShapeParameterPair_idl__ +#define __com_sun_star_drawing_EnhancedCustomShapeParameterPair_idl__ + +#ifndef __com_sun_star_drawing_EnhancedCustomShapeParameter_idl__ +#include <com/sun/star/drawing/EnhancedCustomShapeParameter.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** specifies the coordinates used with EnhancedCustomShapes + */ +struct EnhancedCustomShapeParameterPair +{ + ::com::sun::star::drawing::EnhancedCustomShapeParameter First; + + //------------------------------------------------------------------------- + + ::com::sun::star::drawing::EnhancedCustomShapeParameter Second; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/EnhancedCustomShapeParameterType.idl b/offapi/com/sun/star/drawing/EnhancedCustomShapeParameterType.idl new file mode 100644 index 000000000000..c8c035e13d24 --- /dev/null +++ b/offapi/com/sun/star/drawing/EnhancedCustomShapeParameterType.idl @@ -0,0 +1,107 @@ +/************************************************************************* + * + * 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_drawing_EnhancedCustomShapeParameterType_idl__ +#define __com_sun_star_drawing_EnhancedCustomShapeParameterType_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** defines how a EnhancedCustomShapeParameter has to be interpreted + */ +constants EnhancedCustomShapeParameterType +{ + /** the value of the point component is normal, the Coordinate is taken as it is + */ + const short NORMAL = 0; + + /** the value of the point component has to be interpreted as index to a Equation + */ + const short EQUATION = 1; + + /** the value of the point component has to be interpreted as index into the list of AdjustmentValues + */ + const short ADJUSTMENT = 2; + + /** the logical left border of the CustomShape is used + */ + const short LEFT = 3; + + /** the logical top border of the CustomShape is used + */ + const short TOP = 4; + + /** the logical right border of the CustomShape is used + */ + const short RIGHT = 5; + + /** the logical bottom border of the CustomShape is used + */ + const short BOTTOM = 6; + + /** the x value of the stretch point is used + */ + const short XSTRETCH = 7; + + /** the y value of the stretch point is used + */ + const short YSTRETCH = 8; + + /** If the shape has a line style, a value of 1 is used. + */ + const short HASSTROKE = 9; + + /** If the shape has a fill style, a value of 1 is used. + */ + const short HASFILL = 10; + + /** The width of the svg:viewBox is used. + */ + const short WIDTH = 11; + + /** The height of the svg:viewBox is used. + */ + const short HEIGHT = 12; + + /** The logical width of the shape is used. + */ + const short LOGWIDTH = 13; + + /** The logical height of the shape is used. + */ + const short LOGHEIGHT = 14; +}; + +//============================================================================= + + }; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/EnhancedCustomShapePath.idl b/offapi/com/sun/star/drawing/EnhancedCustomShapePath.idl new file mode 100644 index 000000000000..d0bd22cafb5a --- /dev/null +++ b/offapi/com/sun/star/drawing/EnhancedCustomShapePath.idl @@ -0,0 +1,119 @@ +/************************************************************************* + * + * 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_drawing_EnhancedCustomShapePath_idl__ +#define __com_sun_star_drawing_EnhancedCustomShapePath_idl__ + +#ifndef __com_sun_star_awt_Size_idl__ +#include <com/sun/star/awt/Size.idl> +#endif +#ifndef __com_sun_star_awt_Point_idl__ +#include <com/sun/star/awt/Point.idl> +#endif +#ifndef __com_sun_star_beans_PropertyValue_idl__ +#include <com/sun/star/beans/PropertyValue.idl> +#endif +#ifndef __com_sun_star_drawing_EnhancedCustomShapeParameterPair_idl__ +#include <com/sun/star/drawing/EnhancedCustomShapeParameterPair.idl> +#endif +#ifndef __sun_star_drawing_EnhancedCustomShapeSegment_idl__ +#include <com/sun/star/drawing/EnhancedCustomShapeSegment.idl> +#endif +#ifndef __sun_star_drawing_EnhancedCustomShapeTextFrame_idl__ +#include <com/sun/star/drawing/EnhancedCustomShapeTextFrame.idl> +#endif + + +//============================================================================= + +module com { module sun { module star { module drawing { + +//============================================================================= +/** + This service may be represented by a ::com::sun::star::beans::PropertyValue []. +*/ + +service EnhancedCustomShapePath +{ + /** This property is specifying the points that makes the geometry of the shape + */ + [optional, property] sequence<::com::sun::star::drawing::EnhancedCustomShapeParameterPair> Coordinates; + + /** This property specifies the commands and the way the Coordinates have to be interpreted. + */ + [optional, property] sequence<::com::sun::star::drawing::EnhancedCustomShapeSegment> Segments; + + /** This property specifies the horizontal StretchPoint that has to be used. No stretching is used if + this property is omitted. + */ + [optional, property] long StretchX; + + /** This property specifies the vertical StretchPoint that has to be used. No stretching is used if + this property is omitted. + */ + [optional, property] long StretchY; + + /** This property specifies the text frames that can be used with the shape. In general + the first text frame is used, except the shape is containing vertical text, then the object + tries to use the second text frame. The default text frame will be as big as the shape. + */ + [optional, property] sequence<::com::sun::star::drawing::EnhancedCustomShapeTextFrame> TextFrames; + + /** This property specifies custom glue points + */ + [optional, property] sequence<::com::sun::star::drawing::EnhancedCustomShapeParameterPair> GluePoints; + + /** This property specifies GluePoint leaving directions. + */ + [optional, property] sequence< double > GluePointLeavingDirections; + + /** This property defines the GluePoint type. The values that can be used are + specified in com::sun::star::drawing::EnhancedCustomShapeGluePointType + */ + [optional, property] short GluePointType; + + /** This property specifies if this shape supports the EnhancedCustomShapeExtrusion + properties. The default is true. + */ + [optional, property] boolean ExtrusionAllowed; + + /** This property specifies if this shape supports concentric gradient fill. The default + is false. + */ + [optional, property] boolean ConcentricGradientFillAllowed; + + /** This property specifies if this shape supports concentric gradient fill. The + default is false; + */ + [optional, property] boolean TextPathAllowed; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/EnhancedCustomShapeSegment.idl b/offapi/com/sun/star/drawing/EnhancedCustomShapeSegment.idl new file mode 100644 index 000000000000..a1a8ca12b51f --- /dev/null +++ b/offapi/com/sun/star/drawing/EnhancedCustomShapeSegment.idl @@ -0,0 +1,54 @@ +/************************************************************************* + * + * 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_drawing_EnhancedCustomShapeSegment_idl__ +#define __com_sun_star_drawing_EnhancedCustomShapeSegment_idl__ + +#ifndef __com_sun_star_drawing_EnhancedCustomShapeSegmentCommand_idl__ +#include <com/sun/star/drawing/EnhancedCustomShapeSegmentCommand.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** + */ +struct EnhancedCustomShapeSegment +{ + short Command; + + short Count; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/EnhancedCustomShapeSegmentCommand.idl b/offapi/com/sun/star/drawing/EnhancedCustomShapeSegmentCommand.idl new file mode 100644 index 000000000000..4c65a23ada90 --- /dev/null +++ b/offapi/com/sun/star/drawing/EnhancedCustomShapeSegmentCommand.idl @@ -0,0 +1,115 @@ +/************************************************************************* + * + * 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_drawing_EnhancedCustomShapeSegmentInformationCommand_idl__ +#define __com_sun_star_drawing_EnhancedCustomShapeSegmentInformationCommand_idl__ + + +//============================================================================= + +module com { module sun { module star { module drawing { + +//============================================================================= + +/** + */ +constants EnhancedCustomShapeSegmentCommand +{ + /** + */ + const short UNKNOWN = 0; + + /** + */ + const short MOVETO = 1; + + /** + */ + const short LINETO = 2; + + /** + */ + const short CURVETO = 3; + + /** + */ + const short CLOSESUBPATH = 4; + + /** + */ + const short ENDSUBPATH = 5; + + /** + */ + const short NOFILL = 6; + + /** + */ + const short NOSTROKE = 7; + + /** + */ + const short ANGLEELLIPSETO = 8; + + /** + */ + const short ANGLEELLIPSE = 9; + + /** + */ + const short ARCTO = 10; + + /** + */ + const short ARC = 11; + + /** + */ + const short CLOCKWISEARCTO = 12; + + /** + */ + const short CLOCKWISEARC = 13; + + /** + */ + const short ELLIPTICALQUADRANTX = 14; + + /** + */ + const short ELLIPTICALQUADRANTY = 15; + + /** + */ + const short QUADRATICCURVETO = 16; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/EnhancedCustomShapeTextFrame.idl b/offapi/com/sun/star/drawing/EnhancedCustomShapeTextFrame.idl new file mode 100644 index 000000000000..e9bbd2c71962 --- /dev/null +++ b/offapi/com/sun/star/drawing/EnhancedCustomShapeTextFrame.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_drawing_EnhancedCustomShapeTextFrame_idl__ +#define __com_sun_star_drawing_EnhancedCustomShapeTextFrame_idl__ + +#ifndef __com_sun_star_drawing_EnhancedCustomShapeParameterPair_idl__ +#include <com/sun/star/drawing/EnhancedCustomShapeParameterPair.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** specifies the coordinates used with EnhancedCustomShapes + */ +struct EnhancedCustomShapeTextFrame +{ + ::com::sun::star::drawing::EnhancedCustomShapeParameterPair TopLeft; + + //------------------------------------------------------------------------- + + ::com::sun::star::drawing::EnhancedCustomShapeParameterPair BottomRight; + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/EnhancedCustomShapeTextPath.idl b/offapi/com/sun/star/drawing/EnhancedCustomShapeTextPath.idl new file mode 100644 index 000000000000..72674e8a3974 --- /dev/null +++ b/offapi/com/sun/star/drawing/EnhancedCustomShapeTextPath.idl @@ -0,0 +1,63 @@ +/************************************************************************* + * + * 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_drawing_EnhancedCustomShapeTextPath_idl__ +#define __com_sun_star_drawing_EnhancedCustomShapeTextPath_idl__ + +#ifndef __com_sun_star_drawing_EnhancedCustomShapeTextPathMode_idl__ +#include <com/sun/star/drawing/EnhancedCustomShapeTextPathMode.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module drawing { + +//============================================================================= +/** + This service may be represented by a ::com::sun::star::beans::PropertyValue []. +*/ + +service EnhancedCustomShapeTextPath +{ + /** This property specifies if a text path is used. The default is false. + */ + [optional, property] boolean TextPath; + + /** This property specifies how the text is drawn. + */ + [optional, property] ::com::sun::star::drawing::EnhancedCustomShapeTextPathMode TextPathMode; + + /** This property specifies if the text is scaled using the shape path. + */ + [optional, property] boolean ScaleX; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/EnhancedCustomShapeTextPathMode.idl b/offapi/com/sun/star/drawing/EnhancedCustomShapeTextPathMode.idl new file mode 100644 index 000000000000..f7500576a60d --- /dev/null +++ b/offapi/com/sun/star/drawing/EnhancedCustomShapeTextPathMode.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_drawing_EnhancedCustomShapeTextPathMode_idl__ +#define __com_sun_star_drawing_EnhancedCustomShapeTextPathMode_idl__ + + +//============================================================================= + +module com { module sun { module star { module drawing { + +//============================================================================= + +enum EnhancedCustomShapeTextPathMode +{ + /** the text is drawn along the path without scaling. + */ + NORMAL, + + /** the text is fit to the path. + */ + PATH, + + /** the text is fit to the bounding box of the shape. + */ + SHAPE +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/EscapeDirection.idl b/offapi/com/sun/star/drawing/EscapeDirection.idl new file mode 100644 index 000000000000..7198f4033f95 --- /dev/null +++ b/offapi/com/sun/star/drawing/EscapeDirection.idl @@ -0,0 +1,76 @@ +/************************************************************************* + * + * 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_drawing_EscapeDirection_idl__ +#define __com_sun_star_drawing_EscapeDirection_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** This enumeration defines the escape direction a connector takes on + a glue point. + */ +published enum EscapeDirection +{ + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR EscapeDirection:: SMART, + SMART, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR EscapeDirection:: LEFT, + LEFT, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR EscapeDirection:: RIGHT, + RIGHT, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR EscapeDirection:: UP, + UP, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR EscapeDirection:: DOWN + DOWN, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR EscapeDirection:: HORIZONTAL + HORIZONTAL, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR EscapeDirection:: VERTICAL + VERTICAL +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/FillProperties.idl b/offapi/com/sun/star/drawing/FillProperties.idl new file mode 100644 index 000000000000..ea6de0a07a87 --- /dev/null +++ b/offapi/com/sun/star/drawing/FillProperties.idl @@ -0,0 +1,274 @@ +/************************************************************************* + * + * 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_drawing_FillProperties_idl__ +#define __com_sun_star_drawing_FillProperties_idl__ + +#ifndef __com_sun_star_drawing_FillStyle_idl__ +#include <com/sun/star/drawing/FillStyle.idl> +#endif + +#ifndef __com_sun_star_util_Color_idl__ +#include <com/sun/star/util/Color.idl> +#endif + +#ifndef __com_sun_star_awt_Gradient_idl__ +#include <com/sun/star/awt/Gradient.idl> +#endif + +#ifndef __com_sun_star_drawing_Hatch_idl__ +#include <com/sun/star/drawing/Hatch.idl> +#endif + +#ifndef __com_sun_star_drawing_BitmapMode_idl__ +#include <com/sun/star/drawing/BitmapMode.idl> +#endif + +#ifndef __com_sun_star_awt_XBitmap_idl__ +#include <com/sun/star/awt/XBitmap.idl> +#endif + +#ifndef __com_sun_star_drawing_RectanglePoint_idl__ +#include <com/sun/star/drawing/RectanglePoint.idl> +#endif + + +//============================================================================= + +module com { module sun { module star { module drawing { + +//============================================================================= + +/** This is a set of properties to describe the style for rendering an area. + */ +published service FillProperties +{ + //------------------------------------------------------------------------- + /** This enumeration selects the style the area will be filled with. + */ + [property] FillStyle FillStyle; + + //------------------------------------------------------------------------- + /** If the property <member>FillStyle</member> is set to <const> + FillStyle::SOLID</const>, this is the color used. + */ + [property] com::sun::star::util::Color FillColor; + + //------------------------------------------------------------------------- + /** This is the transparence of the filled area. + + <p>This property is only valid if the property <member>FillStyle + </member> is set to <const>FillStyle::SOLID</const>. + */ + [property] short FillTransparence; + + //------------------------------------------------------------------------- + /** If a gradient is used for transparency, this is the name of the + used transparence gradient style or it is empty. If you set the name + of a transparence gradient style contained in the document, this + style used. + */ + [property] string FillTransparenceGradientName; + + + //------------------------------------------------------------------------- + /** This describes the transparency of the fill area as a gradient. + */ + [optional, property] com::sun::star::awt::Gradient FillTransparenceGradient; + + //------------------------------------------------------------------------- + /** If the property <member>FillStyle</member> is set to <const> + FillStyle::GRADIENT</const>, this is the name of the used fill + gradient style. + */ + [property] string FillGradientName; + + //------------------------------------------------------------------------- + /** If the property <member>FillStyle</member> is set to <const> + FillStyle::GRADIENT</const>, this describes the gradient used. + */ + [optional, property] com::sun::star::awt::Gradient FillGradient; + + //------------------------------------------------------------------------- + /** If the property <member>FillStyle</member> is set to <const> + FillStyle::HATCH</const>, this is the name of the used fill hatch + style. + */ + [property] string FillHatchName; + + //------------------------------------------------------------------------- + /** If the property <member>FillStyle</member> is set to <const> + FillStyle::HATCH</const>, this describes the hatch used. + */ + [optional, property] Hatch FillHatch; + + //------------------------------------------------------------------------- + /** if this is <TRUE/>, the transparent background of a + hatch filled area is drawn in the current background color. + */ + [property] boolean FillBackground; + + //------------------------------------------------------------------------- + /** If the property <memebr>FillStyle</member> is set to <const> + FillStyle::BITMAP</const>, this is the name of the used fill bitmap + style. + */ + [property] string FillBitmapName; + + //------------------------------------------------------------------------- + /** If the property <member>FillStyle</member> is set to <const> + FillStyle::BITMAP</const>, this is the bitmap used. + */ + [optional, property] com::sun::star::awt::XBitmap FillBitmap; + + //------------------------------------------------------------------------- + /** If the property <member>FillStyle</member> is set to <const> + FillStyle::BITMAP</const>, this is a URL to the bitmap used. + */ + [optional, property] string FillBitmapURL; + + //------------------------------------------------------------------------- + /** This is the horizontal offset where the tile starts. + + <p>It is given in percent in relation to the width of the bitmap.</p> + */ + [property] short FillBitmapPositionOffsetX; + + //------------------------------------------------------------------------- + /** This is the vertical offset where the tile starts. + + <p>It is given in percent in relation to the height of the bitmap.</p> + */ + [property] short FillBitmapPositionOffsetY; + + //------------------------------------------------------------------------- + /** Every second line of tiles is moved the given percent of the + witdh of the bitmap. + */ + [property] short FillBitmapOffsetX; + + //------------------------------------------------------------------------- + /** Every second row of tiles is moved the given percent of the + height of the bitmap. + */ + [property] short FillBitmapOffsetY; + + //------------------------------------------------------------------------- + /** The RectanglePoint specifies the position inside of the bitmap to + use as the top left position for rendering. + */ + [property] RectanglePoint FillBitmapRectanglePoint; + + //------------------------------------------------------------------------- + /** specifies if the size is given in percentage or as an absolute value. + + <p>If this is <TRUE/>, the properties <member>FillBitmapSizeX</member> + and <member>FillBitmapSizeY</member> contain the size of the tile in + percent of the size of the original bitmap. If this is <FALSE/>, the + size of the tile is specified with 1/100th mm. + */ + [property] boolean FillBitmapLogicalSize; + + //------------------------------------------------------------------------- + /** This is the width of the tile for filling. + + <p>Depending on the property <member>FillBitmapLogicalSize</member>, + this is either relative or absolute. + */ + [property] long FillBitmapSizeX; + + //------------------------------------------------------------------------- + /** This is the height of the tile for filling. + + <p>Depending on the property <member>FillBitmapLogicalSize</member>, + this is either relative or absolute. + */ + [property] long FillBitmapSizeY; + + //------------------------------------------------------------------------- + /** this enum selects how a area is filled with a single bitmap. + + <p>This property corresponds to the properties <member> + FillBitmapStretch</member> and <member>FillBitmapTile</member>.</p> + + <p>If set to <const>BitmapMode::REPEAT</const>, the property + FillBitmapStretch is set to <FALSE/>, and the property FillBitmapTile + is set to <TRUE/>.</p> + + <p>If set to <const>BitmapMode::STRETCH</const>, the property + FillBitmapStretch is set to <TRUE/>, and the property FillBitmapTile + is set to <FALSE/>.</p> + + <p>If set to <const>BitmapMode::NO_REPEAT</const>, both properties + FillBitmapStretch and FillBitmapTile are set to <FALSE/>.</p> + */ + [property] BitmapMode FillBitmapMode; + + //------------------------------------------------------------------------- + /** if set, the fill bitmap is stretched to fill the area of the shape. + + <p>This property should not be used anymore and is included here for + completeness. The <member>FillBitmapMode</member> property can be used + instead to set all supported bitmap modes.</p> + + <p>If set to <TRUE/>, the value of the FillBitmapMode property changes + to <const>BitmapMode::STRETCH</const>. BUT: behaviour is undefined, if + the property <member>FillBitmapTile</member> is <TRUE/> too.</p> + + <p>If set to <FALSE/>, the value of the FillBitmapMode property + changes to <const>BitmapMode::REPEAT</const> or <const> + BitmapMode::NO_REPEAT</const>, depending on the current value of the + <member>FillBitmapTile</member> property.</p> + */ + [optional, property] boolean FillBitmapStretch; + + //------------------------------------------------------------------------- + /** if set, the fill bitmap is repeated to fill the area of the shape. + + <p>This property should not be used anymore and is included here for + completeness. The <member>FillBitmapMode</member> property can be used + instead to set all supported bitmap modes.</p> + + <p>If set to <TRUE/>, the value of the FillBitmapMode property changes + to <const>BitmapMode::REPEAT</const>. BUT: behaviour is undefined, if + the property <member>FillBitmapStretch</member> is <TRUE/> too.</p> + + <p>If set to <FALSE/>, the value of the FillBitmapMode property + changes to <const>BitmapMode::STRETCH</const> or <const> + BitmapMode::NO_REPEAT</const>, depending on the current value of the + <member>FillBitmapStretch</member> property.</p> + */ + [optional, property] boolean FillBitmapTile; + + //------------------------------------------------------------------------- +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/FillStyle.idl b/offapi/com/sun/star/drawing/FillStyle.idl new file mode 100644 index 000000000000..b305791e654c --- /dev/null +++ b/offapi/com/sun/star/drawing/FillStyle.idl @@ -0,0 +1,89 @@ +/************************************************************************* + * + * 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_drawing_FillStyle_idl__ +#define __com_sun_star_drawing_FillStyle_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: enum com::sun::star::drawing::FillStyle +/** specifies how an area will be filled. + */ +published enum FillStyle +{ + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR FillStyle:: NONE, + + // DocMerge from xml: value com::sun::star::drawing::FillStyle::NONE + /** the area is not filled. + */ + NONE, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR FillStyle:: SOLID, + + // DocMerge from xml: value com::sun::star::drawing::FillStyle::SOLID + /** use a solid color to fill the area. + */ + SOLID, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR FillStyle:: GRADIENT, + + // DocMerge from xml: value com::sun::star::drawing::FillStyle::GRADIENT + /** use a gradient color to fill the area. + */ + GRADIENT, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR FillStyle:: HATCH, + + // DocMerge from xml: value com::sun::star::drawing::FillStyle::HATCH + /** use a hatch to fill the area. + */ + HATCH, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR FillStyle:: BITMAP + + // DocMerge from xml: value com::sun::star::drawing::FillStyle::BITMAP + /** use a bitmap to fill the area. + */ + BITMAP + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/FlagSequence.idl b/offapi/com/sun/star/drawing/FlagSequence.idl new file mode 100644 index 000000000000..a2fcfe27dfc7 --- /dev/null +++ b/offapi/com/sun/star/drawing/FlagSequence.idl @@ -0,0 +1,48 @@ +/************************************************************************* + * + * 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_drawing_FlagSequence_idl__ +#define __com_sun_star_drawing_FlagSequence_idl__ + +#ifndef __com_sun_star_drawing_PolygonFlags_idl__ +#include <com/sun/star/drawing/PolygonFlags.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module drawing { + +//============================================================================= +/** +*/ +published typedef sequence<PolygonFlags> FlagSequence; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/FlagSequenceSequence.idl b/offapi/com/sun/star/drawing/FlagSequenceSequence.idl new file mode 100644 index 000000000000..5be60e2a1fb1 --- /dev/null +++ b/offapi/com/sun/star/drawing/FlagSequenceSequence.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_drawing_FlagSequenceSequence_idl__ +#define __com_sun_star_drawing_FlagSequenceSequence_idl__ + +#ifndef __com_sun_star_drawing_FlagSequence_idl__ +#include <com/sun/star/drawing/FlagSequence.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module drawing { + +//============================================================================= +/** +*/ +published typedef sequence<FlagSequence> FlagSequenceSequence; + + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/GenericDrawPage.idl b/offapi/com/sun/star/drawing/GenericDrawPage.idl new file mode 100644 index 000000000000..ee9920111805 --- /dev/null +++ b/offapi/com/sun/star/drawing/GenericDrawPage.idl @@ -0,0 +1,238 @@ +/************************************************************************* + * + * 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_drawing_GenericDrawPage_idl__ +#define __com_sun_star_drawing_GenericDrawPage_idl__ + +#ifndef __com_sun_star_drawing_XShapes_idl__ +#include <com/sun/star/drawing/XShapes.idl> +#endif + +#ifndef __com_sun_star_drawing_XShapeGrouper_idl__ +#include <com/sun/star/drawing/XShapeGrouper.idl> +#endif + +#ifndef __com_sun_star_drawing_XShapeCombiner_idl__ +#include <com/sun/star/drawing/XShapeCombiner.idl> +#endif + +#ifndef __com_sun_star_drawing_XShapeBinder_idl__ +#include <com/sun/star/drawing/XShapeBinder.idl> +#endif + +#ifndef __com_sun_star_container_XNamed_idl__ +#include <com/sun/star/container/XNamed.idl> +#endif + +#ifndef __com_sun_star_lang_XServiceInfo_idl__ +#include <com/sun/star/lang/XServiceInfo.idl> +#endif + +#ifndef __com_sun_star_beans_XPropertySet_idl__ +#include <com/sun/star/beans/XPropertySet.idl> +#endif + +#ifndef __com_sun_star_view_PaperOrientation_idl__ +#include <com/sun/star/view/PaperOrientation.idl> +#endif + +#ifndef __com_sun_star_container_XNameContainer_idl__ +#include <com/sun/star/container/XNameContainer.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: service com::sun::star::drawing::GenericDrawPage +/** This abstract service is implemented by every page of a + <type>DrawingDocument</type>. + + + + @example create and insert a couple of <type>LineShape</type>s: + + <listing> + xPage = xDoc.DrawPages(0) + for x% = 0 to 200 + xShape = xProv.createInstance( "com::sun::star::drawing::LineShape" ) + xShape.LineColor = rgb( 255, 0, n%+20 ) + xShape.LineWidth = 20 + xShape.Position = Point( x%, 2*x% ) + xShape.Size = Size( 300-x%, 20 ) + xPage.add( xShape ) + next x% + </listing> + */ +published service GenericDrawPage +{ + + + // DocMerge from xml: service com::sun::star::drawing::GenericDrawPage: interface com::sun::star::drawing::XShapes + /** manages the <type>Shape</type>s of this page. + + <p>It also lets you add new <type>Shape</type>s. The program currently + requires that these <type>Shape</type>s be created by the factory of + the document. + + @see <type>DrawingDocument</type> + */ + interface com::sun::star::drawing::XShapes; + + + // DocMerge from xml: service com::sun::star::drawing::GenericDrawPage: interface com::sun::star::drawing::XShapeGrouper + /** With this interface you can group/ungroup a collection of + <type>Shape</type>s. + */ + interface com::sun::star::drawing::XShapeGrouper; + + + // DocMerge from xml: service com::sun::star::drawing::GenericDrawPage: interface com::sun::star::drawing::XShapeCombiner + /** With this interface you can combine/split a collection of + <type>Shape</type>s. + */ + [optional] interface com::sun::star::drawing::XShapeCombiner; + + + // DocMerge from xml: service com::sun::star::drawing::GenericDrawPage: interface com::sun::star::drawing::XShapeBinder + /** With this interface you can bind/unbind a collection of + <type>Shape</type>s. + */ + [optional] interface com::sun::star::drawing::XShapeBinder; + + + // DocMerge from xml: service com::sun::star::drawing::GenericDrawPage: interface com::sun::star::container::XNamed + /** Gets or sets the name of this page. + + <p>Duplicated pagenames inside a document are not allowed. + */ + [optional] interface com::sun::star::container::XNamed; + + + // DocMerge from xml: service com::sun::star::drawing::GenericDrawPage: interface com::sun::star::lang::XServiceInfo + /** returns the services implemented by this + instance. + */ + interface com::sun::star::lang::XServiceInfo; + + + // DocMerge from xml: service com::sun::star::drawing::GenericDrawPage: interface com::sun::star::beans::XPropertySet + /** gives you access to the properties of this + <type>DrawPage</type>. + */ + [optional] interface com::sun::star::beans::XPropertySet; + + //------------------------------------------------------------------------- + + // DocMerge from xml: property com::sun::star::drawing::GenericDrawPage::BorderBottom + /** This is the border at the bottom. + */ + [optional, property] long BorderBottom; + + //------------------------------------------------------------------------- + + // DocMerge from xml: property com::sun::star::drawing::GenericDrawPage::BorderLeft + /** This is the border at the left. + */ + [optional, property] long BorderLeft; + + //------------------------------------------------------------------------- + + // DocMerge from xml: property com::sun::star::drawing::GenericDrawPage::BorderRight + /** This is the border at the right. + */ + [optional, property] long BorderRight; + + //------------------------------------------------------------------------- + + // DocMerge from xml: property com::sun::star::drawing::GenericDrawPage::BorderTop + /** This is the border at the top. + */ + [optional, property] long BorderTop; + + //------------------------------------------------------------------------- + + // DocMerge from xml: property com::sun::star::drawing::GenericDrawPage::Height + /** This is the height. + */ + [optional, property] long Height; + + //------------------------------------------------------------------------- + + // DocMerge from xml: property com::sun::star::drawing::GenericDrawPage::Width + /** This is the width. + */ + [optional, property] long Width; + + //------------------------------------------------------------------------- + + // DocMerge from xml: property com::sun::star::drawing::GenericDrawPage::Number + /** This is the number of this page, starting with 1. + */ + [optional, readonly, property] short Number; + + //------------------------------------------------------------------------- + + // DocMerge from xml: property com::sun::star::drawing::GenericDrawPage::Orientation + /** This is the orientation of this page. + */ + [optional, property] com::sun::star::view::PaperOrientation Orientation; + + //------------------------------------------------------------------------- + + /** this property stores xml attributes. + They will be saved to and restored from automatic styles inside xml files. + + @see com::sun::star::xml::AttributeContainer + */ + [optional, property] com::sun::star::container::XNameContainer UserDefinedAttributes; + + //------------------------------------------------------------------------- + + /** this property is true if the avveraged background filling colors luminance + is belove an application specified threshold value. This can be used to + determine the actuall value of an auto color. + */ + [readonly, optional, property] boolean IsBackgroundDark; + + //------------------------------------------------------------------------- + + /** this index access defines a navigation order for the top level shapes + inside this page. + By default this is equal to the index access of the slide itself, + making the z-order the default navigation order for top level shapes. + */ + [optional, property] com::sun::star::container::XIndexAccess NavigationOrder; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/GenericDrawingDocument.idl b/offapi/com/sun/star/drawing/GenericDrawingDocument.idl new file mode 100644 index 000000000000..febd57d93b97 --- /dev/null +++ b/offapi/com/sun/star/drawing/GenericDrawingDocument.idl @@ -0,0 +1,240 @@ +/************************************************************************* + * + * 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_drawing_GenericDrawingDocument_idl__ +#define __com_sun_star_drawing_GenericDrawingDocument_idl__ + +#ifndef __com_sun_star_drawing_XDrawPageDuplicator_idl__ +#include <com/sun/star/drawing/XDrawPageDuplicator.idl> +#endif + +#ifndef __com_sun_star_drawing_XDrawPagesSupplier_idl__ +#include <com/sun/star/drawing/XDrawPagesSupplier.idl> +#endif + +#ifndef __com_sun_star_drawing_XMasterPagesSupplier_idl__ +#include <com/sun/star/drawing/XMasterPagesSupplier.idl> +#endif + +#ifndef __com_sun_star_drawing_XLayerSupplier_idl__ +#include <com/sun/star/drawing/XLayerSupplier.idl> +#endif + +#ifndef __com_sun_star_lang_XMultiServiceFactory_idl__ +#include <com/sun/star/lang/XMultiServiceFactory.idl> +#endif + +#ifndef __com_sun_star_beans_XPropertySet_idl__ +#include <com/sun/star/beans/XPropertySet.idl> +#endif + +#ifndef __com_sun_star_style_XStyleFamiliesSupplier_idl__ +#include <com/sun/star/style/XStyleFamiliesSupplier.idl> +#endif + +#ifndef __com_sun_star_lang_Locale_idl__ +#include <com/sun/star/lang/Locale.idl> +#endif + +#ifndef __com_sun_star_awt_Rectangle_idl__ +#include <com/sun/star/awt/Rectangle.idl> +#endif + +#ifndef __com_sun_star_i18n_XForbiddenCharacters_idl__ +#include <com/sun/star/i18n/XForbiddenCharacters.idl> +#endif + +#ifndef __com_sun_star_document_OfficeDocument_idl__ +#include <com/sun/star/document/OfficeDocument.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** specifies a document which consists of multiple pages + with drawings. + + <p>Because its function is needed more then once, its defined as generic one.</p> + */ +service GenericDrawingDocument +{ + /** this base service describes storing and printing */ + service com::sun::star::document::OfficeDocument; + + /** this factory lets you create various services that are + used inside a drawing document + + <p>The following services are <type>Shape</type>s. + They are created by the documents factory and must + be inserted into a <type>DrawPage</type> or <type>MasterPage</type> + of this document. + + <ul> + <li><type>RectangleShape</type></li> + <li><type>EllipseShape</type></li> + <li><type>ControlShape</type></li> + <li><type>ConnectorShape</type></li> + <li><type>MeasureShape</type></li> + <li><type>LineShape</type></li> + <li><type>PolyPolygonShape</type></li> + <li><type>PolyLineShape</type></li> + <li><type>OpenBezierShape</type></li> + <li><type>ClosedBezierShape</type></li> + <li><type>GraphicObjectShape</type></li> + <li><type>GroupShape</type></li> + <li><type>TextShape</type></li> + <li><type>OLE2Shape</type></li> + <li><type>PageShape</type></li> + <li><type>CaptionShape</type></li> + <li><type>PluginShape</type></li> + <li><type>AppletShape</type></li> + </ul> + + <p>The following services are all <type scope="com::sun::star::text">TextField</type> + and can be inserted into text as <type scope="com::sun::star::text">TextContent</type>. + + <ul> + <li><member scope="com::sun::star::text">TextField::DateTime</member></li> + <li><member scope="com::sun::star::text">TextField::URL</member></li> + <li><member scope="com::sun::star::text">TextField::PageNumber</member></li> + <li><member scope="com::sun::star::text">TextField::PageCount</member></li> + <li><member scope="com::sun::star::text">TextField::SheetName</member></li> + <li><member scope="com::sun::star::text">TextField::FileName</member></li> + <li><member scope="com::sun::star::text">TextField::DocInfo.Title</member></li> + <li><member scope="com::sun::star::text">TextField::Author</member></li> + <li><member scope="com::sun::star::text">TextField::Measure</member></li> + </ul> + + <p>The following services gives access to resources used inside the document + and let you add new resources. + + <ul> + <li><type scope="com::sun::star::drawing">DashTable</type></li> + <li><type scope="com::sun::star::drawing">GradientTable</type></li> + <li><type scope="com::sun::star::drawing">HatchTable</type></li> + <li><type scope="com::sun::star::drawing">BitmapTable</type></li> + <li><type scope="com::sun::star::drawing">TransparencyGradientTable</type></li> + <li><type scope="com::sun::star::drawing">MarkerTable</type></li> + </ul> + + <p>The following service can be set at the <code>Numbering</code> property + inside a <type scope="com::sun::star::style">ParagraphProperties</type> + + <ul> + <li><type scope="com::sun::star::text">NumberingRules</type></li> + </ul> + + <p>The following services can be used for a <type scope="com::sun::star::image">ImageMap</type> + inside the document. + + <br>A <type scope="com::sun::star::image">ImageMap</type> can be obtained from a + <type>GraphicObjectShape</type> + + <ul> + <li><type scope="com::sun::star::image">ImageMapRectangleObject</type></li> + <li><type scope="com::sun::star::image">ImageMapCircleObject</type></li> + <li><type scope="com::sun::star::image">ImageMapPolygonObject</type></li> + </ul> + + <p>The following services lets you access the drawing property defaults + of a document. + + <ul> + <li><type scope="com::sun::star::drawing">Defaults</type></li> + </ul> + */ + interface com::sun::star::lang::XMultiServiceFactory; + + /** lets you access the properties of this service. + */ + interface com::sun::star::beans::XPropertySet; + + /** lets you duplicate pages inside this document. + */ + interface com::sun::star::drawing::XDrawPageDuplicator; + + + /** provides an object that is implementing the service + <type>DrawPage</type>s. With this service you have access to the + <type>DrawPage</type>s inside a document. + */ + interface com::sun::star::drawing::XDrawPagesSupplier; + + + /** returns an object that is implementing the service + <type>MasterPages</type>. With this service you have access to the + <type>MasterPage</type>s inside a document. + */ + interface com::sun::star::drawing::XMasterPagesSupplier; + + + /** returns an object that is implementing the service + <type>LayerManager</type>. This service lets you manipulate the + <type>Layer</type>s of this document. + */ + interface com::sun::star::drawing::XLayerSupplier; + + /** This interface lets you access the styles contained in this document + */ + interface com::sun::star::style::XStyleFamiliesSupplier; + + //------------------------------------------------------------------------- + + /** This property specifies the length between the default tab stops + inside text in this document in 1/100th mm. + */ + [property] long TabStop; + + //------------------------------------------------------------------------- + + /** contains the identifier of the default locale of the document. + */ + [property] com::sun::star::lang::Locale CharLocale; + + //------------------------------------------------------------------------- + + /** if this document is an ole client, this is the current visible area + in 100th mm + */ + [property] com::sun::star::awt::Rectangle VisibleArea; + + //------------------------------------------------------------------------- + + /** This property gives the XForbiddenCharacters. + */ + [readonly, property] com::sun::star::i18n::XForbiddenCharacters ForbiddenCharacters; + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/GluePoint.idl b/offapi/com/sun/star/drawing/GluePoint.idl new file mode 100644 index 000000000000..83cfb638d35f --- /dev/null +++ b/offapi/com/sun/star/drawing/GluePoint.idl @@ -0,0 +1,91 @@ +/************************************************************************* + * + * 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_drawing_GluePoint_idl__ +#define __com_sun_star_drawing_GluePoint_idl__ + +#ifndef __com_sun_star_awt_Point_idl__ +#include <com/sun/star/awt/Point.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: struct com::sun::star::drawing::GluePoint +/** A <type>GluePoint</type> could be attached to a shape or to a page. + + + + <p>If a <type>GluePoint</type> is attached to a shape, it is moved when + the shape moves. + The ends of connectors can be attached to <type>GluePoint</type>.</p> + + @deprecated + @see GluePoint2 + */ +published struct GluePoint +{ + // DocMerge from xml: field com::sun::star::drawing::GluePoint::Position + /** This is the position of this <type>GluePoint</type>. + */ + com::sun::star::awt::Point Position; + + //------------------------------------------------------------------------- + + // DocMerge from xml: field com::sun::star::drawing::GluePoint::EscapeDirection + /** This is the direction in which the connector line leaves the + <type>GluePoint</type>. + */ + short EscapeDirection; + + //------------------------------------------------------------------------- + + // DocMerge from xml: field com::sun::star::drawing::GluePoint::PositionAbsolute + /** If this is <TRUE/>, then the position of this <type>GluePoint</type> is + absolute on a page and is not relative to a shape. + */ + boolean PositionAbsolute; + + //------------------------------------------------------------------------- + + // DocMerge from xml: field com::sun::star::drawing::GluePoint::Alignment + /** The alignment of a <code>GluePoint</code> defines how the position of + the point is affected by resizing the parent <code>Shape</code>. + */ + short Alignment; + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/GluePoint2.idl b/offapi/com/sun/star/drawing/GluePoint2.idl new file mode 100644 index 000000000000..5169add58450 --- /dev/null +++ b/offapi/com/sun/star/drawing/GluePoint2.idl @@ -0,0 +1,89 @@ +/************************************************************************* + * + * 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_drawing_GluePoint2_idl__ +#define __com_sun_star_drawing_GluePoint2_idl__ + +#ifndef __com_sun_star_drawing_Alignment_idl__ +#include <com/sun/star/drawing/Alignment.idl> +#endif + +#ifndef __com_sun_star_awt_Point_idl__ +#include <com/sun/star/awt/Point.idl> +#endif + +#ifndef __com_sun_star_drawing_EscapeDirection_idl__ +#include <com/sun/star/drawing/EscapeDirection.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** This struct defines the attributes of a glue point. + <p>A glue point is a position inside a drawing shape where an edge + of a connector shape can be connected.</p> + */ +published struct GluePoint2 +{ + /** This is the position of this glue point. Depending on + the flag <code>IsRelative</code>, this is either in 1/100cm + or in 1/100%. + + <!-- Dennis: Is the % correct? --> + */ + com::sun::star::awt::Point Position; + + /** if this flag is set to true, the position of this glue point + is given in 1/100% values instead of 1/100cm. */ + boolean IsRelative; + + /** if this glue points position is not relative, this enum + specifies the vertical and horizontal alignment of this + point. The alignment specifies how the glue point is + moved if the shape is resized. */ + com::sun::star::drawing::Alignment PositionAlignment; + + /** this member specifies the escape direction for a glue + point. The escape direction is the direction the connecting + line escapes the shape. */ + + com::sun::star::drawing::EscapeDirection Escape; + + /** if this flag is set to false, this is a default glue + point. Some shapes may have default glue points attached + to them which cannot be altered or removed. */ + boolean IsUserDefined; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/GradientTable.idl b/offapi/com/sun/star/drawing/GradientTable.idl new file mode 100644 index 000000000000..a8c3b67f4d12 --- /dev/null +++ b/offapi/com/sun/star/drawing/GradientTable.idl @@ -0,0 +1,64 @@ +/************************************************************************* + * + * 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_drawing_GradientTable_idl__ +#define __com_sun_star_drawing_GradientTable_idl__ + +#ifndef __com_sun_star_container_XNameContainer_idl__ +#include <com/sun/star/container/XNameContainer.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** this is a container for <type scope="com::sun::star::awt">Gradient</type>s + + <p>It is used for example to access the <type scope="com::sun::star::awt">Gradient</type>s that + are used inside a document. + + @see DrawingDocumentFactory + @see com::sun::star::awt::Gradient +*/ +published service GradientTable +{ + /** this container lets you access the <type scope="com::sun::star::awt">Gradient</type>s that + are indexed with a name. + + <p>Note: You can add new entries for later use, but you cannot + remove entries that are used inside the document. + */ + interface com::sun::star::container::XNameContainer; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/GraphicExportFilter.idl b/offapi/com/sun/star/drawing/GraphicExportFilter.idl new file mode 100644 index 000000000000..97351fceaa55 --- /dev/null +++ b/offapi/com/sun/star/drawing/GraphicExportFilter.idl @@ -0,0 +1,104 @@ +/************************************************************************* + * + * 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_drawing_GraphicExportFilter_idl__ +#define __com_sun_star_drawing_GraphicExportFilter_idl__ + +#ifndef __com_sun_star_document_XFilter_idl__ +#include <com/sun/star/document/XFilter.idl> +#endif + +#ifndef __com_sun_star_document_XExporter_idl__ +#include <com/sun/star/document/XExporter.idl> +#endif + +#ifndef __com_sun_star_document_XMimeTypeInfo_idl__ +#include <com/sun/star/document/XMimeTypeInfo.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** a component that supports this service lets you export pages, shapes, or + groups of shapes from a DrawingDocument to a file in one of the file formats + supported by the component. +*/ +published service GraphicExportFilter +{ + /** calling <method scope=scope="com::sun::star::document">XFilter::filter + </method> starts the export of the graphic file. The following properties + from the <type scope="com::sun::star::document">MediaDescriptor + </type> are supported:<p> + + <member scope="com::sun::star::document">MediaDescriptor::MediaType + </member><b> + + Depending on the export filters supported by this component this is + the mime type of the target graphic file. Possible values are<b> + image/x-MS-bmp<b> + application/dxf<b> + application/postscript<b> + image/gif<b> + image/jpeg<b> + image/png<b> + image/x-pict<b> + image/x-pcx<b> + image/x-portable-bitmap<b> + image/x-portable-graymap<b> + image/x-portable-pixmap<b> + image/x-cmu-raster<b> + image/targa<b> + image/tiff<b> + image/x-xbitmap<b> + image/x-xpixmap<b> + image/svg+xml<p> + Ask the interface <type scope="com::sun::star::document">XMimeTypeInfo + </type> for all values supported by the component. + + <member scope="com::sun::star::document">MediaDescriptor::URL</member><b> + This is the target url of the file that will be created during export. + */ + interface ::com::sun::star::document::XFilter; + + /** sets the source component for this export filter. + This could either be a <type>DrawPage</type>, a <type>Shape</type> + or a <type>Shapes</type>. + */ + interface ::com::sun::star::document::XExporter; + + /** lets you query the supported mime types by this component */ + interface ::com::sun::star::document::XMimeTypeInfo; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/GraphicFilterRequest.idl b/offapi/com/sun/star/drawing/GraphicFilterRequest.idl new file mode 100644 index 000000000000..9bf571609159 --- /dev/null +++ b/offapi/com/sun/star/drawing/GraphicFilterRequest.idl @@ -0,0 +1,56 @@ +/************************************************************************* + * + * 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_drawing_GraphicFilterRequest_idl__ +#define __com_sun_star_drawing_GraphicFilterRequest_idl__ + +#ifndef __com_sun_star_uno_Exception_idl__ +#include <com/sun/star/uno/Exception.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** represents a general error graphic filter exception. + It can be used to transport the error code information. + E.g. that can be usefull for interactions. + + @since OOo 3.0 + */ +exception GraphicFilterRequest : com::sun::star::uno::Exception +{ + /** specifies the error code. */ + long ErrCode; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/drawing/GraphicObjectShape.idl b/offapi/com/sun/star/drawing/GraphicObjectShape.idl new file mode 100644 index 000000000000..06a45bbe813e --- /dev/null +++ b/offapi/com/sun/star/drawing/GraphicObjectShape.idl @@ -0,0 +1,160 @@ +/************************************************************************* + * + * 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_drawing_GraphicObjectShape_idl__ +#define __com_sun_star_drawing_GraphicObjectShape_idl__ + +#ifndef __com_sun_star_drawing_Shape_idl__ +#include <com/sun/star/drawing/Shape.idl> +#endif + +#ifndef __com_sun_star_drawing_Text_idl__ +#include <com/sun/star/drawing/Text.idl> +#endif + +#ifndef __com_sun_star_drawing_ShadowProperties_idl__ +#include <com/sun/star/drawing/ShadowProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_RotationDescriptor_idl__ +#include <com/sun/star/drawing/RotationDescriptor.idl> +#endif + +#ifndef __com_sun_star_awt_XBitmap_idl__ +#include <com/sun/star/awt/XBitmap.idl> +#endif + +#ifndef com_sun_star_graphic_XGraphic_idl +#include <com/sun/star/graphic/XGraphic.idl> +#endif + +#ifndef __com_sun_star_drawing_ColorMode_idl__ +#include <com/sun/star/drawing/ColorMode.idl> +#endif + +#ifndef __com_sun_star_container_XIndexContainer_idl__ +#include <com/sun/star/container/XIndexContainer.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** This service is for a graphic shape. + */ +published service GraphicObjectShape +{ + service com::sun::star::drawing::Shape; + + service com::sun::star::drawing::Text; + + service com::sun::star::drawing::ShadowProperties; + + service com::sun::star::drawing::RotationDescriptor; + + //------------------------------------------------------------------------- + /** This is an url to the source bitmap for this graphic shape. + */ + [property] string GraphicURL; + + //------------------------------------------------------------------------- + /** This is an url to the stream ('in document' or linked graphic) for this graphic shape. + */ + [property] string GraphicStreamURL; + + //------------------------------------------------------------------------- + /** Deprecated. Use graphic property instead! + This is the bitmap that represents this graphic shape. + */ + [optional, property] com::sun::star::awt::XBitmap GraphicObjectFillBitmap; + + //------------------------------------------------------------------------- + /** If this property is set, the luminance of this graphic shape is adjusted + by the given signed percent value. + */ + [property] short AdjustLuminance; + + //------------------------------------------------------------------------- + /** If this property is set, the contrast of this graphic shape is adjusted + by the given signed percent value. + */ + [property] short AdjustContrast; + + //------------------------------------------------------------------------- + /** If this property is set, the red channel of this graphic shape is + adjusted by the given signed percent value. + */ + [property] short AdjustRed; + + //------------------------------------------------------------------------- + /** If this property is set, the green channel of this graphic shape is + adjusted by the given signed percent value. + */ + [property] short AdjustGreen; + + //------------------------------------------------------------------------- + /** If this property is set, the blue channel of this graphic shape is + adjusted by the given signed percent value. + */ + [property] short AdjustBlue; + + //------------------------------------------------------------------------- + /** If this property is set, the gama value of this graphic shape is + adjusted by the given value. + */ + [property] double Gamma; + + //------------------------------------------------------------------------- + /** If this property is set, the transparency value of this graphic shape is + adjusted by the given unsigned percent value. + 100% is fully transparent, 0 % is fully opaque. + */ + [property] short Transparency; + + //------------------------------------------------------------------------- + /** This property selects the color mode that is used for rendering. + */ + [property] ColorMode GraphicColorMode; + + //------------------------------------------------------------------------- + /** This property contains a image map for this graphic. + @see com::sun::star::image::ImageMap + */ + [optional, property] com::sun::star::container::XIndexContainer ImageMap; + + //------------------------------------------------------------------------- + /** This is the graphic that represents this graphic shape + */ + [optional, property] com::sun::star::graphic::XGraphic Graphic; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/drawing/GroupShape.idl b/offapi/com/sun/star/drawing/GroupShape.idl new file mode 100644 index 000000000000..4aa717692517 --- /dev/null +++ b/offapi/com/sun/star/drawing/GroupShape.idl @@ -0,0 +1,76 @@ +/************************************************************************* + * + * 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_drawing_GroupShape_idl__ +#define __com_sun_star_drawing_GroupShape_idl__ + +#ifndef __com_sun_star_drawing_XShapeGroup_idl__ +#include <com/sun/star/drawing/XShapeGroup.idl> +#endif + +#ifndef __com_sun_star_drawing_XShapes_idl__ +#include <com/sun/star/drawing/XShapes.idl> +#endif + +#ifndef __com_sun_star_drawing_Shape_idl__ +#include <com/sun/star/drawing/Shape.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** This service is for a group of <type>Shape</type>s. + @see XShapeGroup + @see XShapes + */ +published service GroupShape +{ + /** Since a GroupShape is also a shape, it has to support this service + */ + service com::sun::star::drawing::Shape; + + /** this is a ui feature for entering and leaving the group for + editing. + */ + interface com::sun::star::drawing::XShapeGroup; + + + /** lets you access the <type>Shape</type>s in this Group. + */ + interface com::sun::star::drawing::XShapes; + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/Hatch.idl b/offapi/com/sun/star/drawing/Hatch.idl new file mode 100644 index 000000000000..bfbbc94d8473 --- /dev/null +++ b/offapi/com/sun/star/drawing/Hatch.idl @@ -0,0 +1,86 @@ +/************************************************************************* + * + * 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_drawing_Hatch_idl__ +#define __com_sun_star_drawing_Hatch_idl__ + +#ifndef __com_sun_star_drawing_HatchStyle_idl__ +#include <com/sun/star/drawing/HatchStyle.idl> +#endif + +#ifndef __com_sun_star_util_Color_idl__ +#include <com/sun/star/util/Color.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: struct com::sun::star::drawing::Hatch +/** This struct defines the appearence of a hatch. + + <p>A hatch is a texture made of straight lines.</p> + */ +published struct Hatch +{ + // DocMerge from xml: field com::sun::star::drawing::Hatch::Style + /** The <type>HatchStyle</type> defines the kind of lines used to draw + this hatch. + */ + com::sun::star::drawing::HatchStyle Style; + + //------------------------------------------------------------------------- + + // DocMerge from xml: field com::sun::star::drawing::Hatch::Color + /** This is the color of the hatch lines. + */ + com::sun::star::util::Color Color; + + //------------------------------------------------------------------------- + + // DocMerge from xml: field com::sun::star::drawing::Hatch::Distance + /** This is the distance between the lines in the hatch. + */ + long Distance; + + //------------------------------------------------------------------------- + + // DocMerge from xml: field com::sun::star::drawing::Hatch::Angle + /** You can rotate the lines of the hatch with this angle. + */ + long Angle; + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/HatchStyle.idl b/offapi/com/sun/star/drawing/HatchStyle.idl new file mode 100644 index 000000000000..baa4d8fab6fa --- /dev/null +++ b/offapi/com/sun/star/drawing/HatchStyle.idl @@ -0,0 +1,70 @@ +/************************************************************************* + * + * 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_drawing_HatchStyle_idl__ +#define __com_sun_star_drawing_HatchStyle_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: enum com::sun::star::drawing::HatchStyle +/** The <type>HatchStyle</type> defines the style of the lines in a hatch. + */ +published enum HatchStyle +{ + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::HatchStyle::SINGLE + /** the hatch consists of a single horizontal line + */ + SINGLE, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::HatchStyle::DOUBLE + /** the hatch has a horizontal and a vertical line + */ + DOUBLE, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::HatchStyle::TRIPLE + /** the hatch has a horizontal, a vertical and a diagonal line + */ + TRIPLE + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/HatchTable.idl b/offapi/com/sun/star/drawing/HatchTable.idl new file mode 100644 index 000000000000..c96a474fb596 --- /dev/null +++ b/offapi/com/sun/star/drawing/HatchTable.idl @@ -0,0 +1,64 @@ +/************************************************************************* + * + * 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_drawing_HatchTable_idl__ +#define __com_sun_star_drawing_HatchTable_idl__ + +#ifndef __com_sun_star_container_XNameContainer_idl__ +#include <com/sun/star/container/XNameContainer.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** this is a container for <type>Hatch</type>s + + <p>It is used for example to access the <type>Hatch</type>s that + are used inside a document. + + @see DrawingDocumentFactory + @see Hatch +*/ +published service HatchTable +{ + /** this container lets you access the <type>Hatch</type>s that + are indexed with a name. + + <p>Note: You can add new entries for later use, but you cannot + remove entries that are used inside the document. + */ + interface com::sun::star::container::XNameContainer; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/HomogenMatrix.idl b/offapi/com/sun/star/drawing/HomogenMatrix.idl new file mode 100644 index 000000000000..fabfddc7875d --- /dev/null +++ b/offapi/com/sun/star/drawing/HomogenMatrix.idl @@ -0,0 +1,74 @@ +/************************************************************************* + * + * 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_drawing_HomogenMatrix_idl__ +#define __com_sun_star_drawing_HomogenMatrix_idl__ + +#ifndef __com_sun_star_drawing_HomogenMatrixLine_idl__ +#include <com/sun/star/drawing/HomogenMatrixLine.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: struct com::sun::star::drawing::HomogenMatrix +/** specifies a homogenous matrix by three homogenous lines + */ +published struct HomogenMatrix +{ + // DocMerge: empty anyway + com::sun::star::drawing::HomogenMatrixLine Line1; + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR HomogenMatrix::Line2 + + // DocMerge: empty anyway + com::sun::star::drawing::HomogenMatrixLine Line2; + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR HomogenMatrix::Line3 + + // DocMerge: empty anyway + com::sun::star::drawing::HomogenMatrixLine Line3; + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR HomogenMatrix::Line4 + + // DocMerge: empty anyway + com::sun::star::drawing::HomogenMatrixLine Line4; + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/HomogenMatrix3.idl b/offapi/com/sun/star/drawing/HomogenMatrix3.idl new file mode 100644 index 000000000000..a2dfb7f6f00b --- /dev/null +++ b/offapi/com/sun/star/drawing/HomogenMatrix3.idl @@ -0,0 +1,64 @@ +/************************************************************************* + * + * 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_drawing_HomogenMatrix3_idl__ +#define __com_sun_star_drawing_HomogenMatrix3_idl__ + +#ifndef __com_sun_star_drawing_HomogenMatrixLine3_idl__ +#include <com/sun/star/drawing/HomogenMatrixLine3.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: struct com::sun::star::drawing::HomogenMatrix +/** specifies a homogenous matrix by three homogenous lines + */ +published struct HomogenMatrix3 +{ + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR HomogenMatrix3::Line1 + com::sun::star::drawing::HomogenMatrixLine3 Line1; + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR HomogenMatrix3::Line2 + com::sun::star::drawing::HomogenMatrixLine3 Line2; + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR HomogenMatrix3::Line3 + com::sun::star::drawing::HomogenMatrixLine3 Line3; + }; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/HomogenMatrix4.idl b/offapi/com/sun/star/drawing/HomogenMatrix4.idl new file mode 100644 index 000000000000..345a6bf3ee1a --- /dev/null +++ b/offapi/com/sun/star/drawing/HomogenMatrix4.idl @@ -0,0 +1,68 @@ +/************************************************************************* + * + * 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_drawing_HomogenMatrix4_idl__ +#define __com_sun_star_drawing_HomogenMatrix4_idl__ + +#ifndef __com_sun_star_drawing_HomogenMatrixLine4_idl__ +#include <com/sun/star/drawing/HomogenMatrixLine4.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: struct com::sun::star::drawing::HomogenMatrix +/** specifies a homogenous matrix by four homogenous lines. + */ +published struct HomogenMatrix4 +{ + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR HomogenMatrix4::Line1 + com::sun::star::drawing::HomogenMatrixLine4 Line1; + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR HomogenMatrix4::Line2 + com::sun::star::drawing::HomogenMatrixLine4 Line2; + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR HomogenMatrix4::Line3 + com::sun::star::drawing::HomogenMatrixLine4 Line3; + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR HomogenMatrix4::Line4 + com::sun::star::drawing::HomogenMatrixLine4 Line4; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/HomogenMatrixLine.idl b/offapi/com/sun/star/drawing/HomogenMatrixLine.idl new file mode 100644 index 000000000000..68a2399d951e --- /dev/null +++ b/offapi/com/sun/star/drawing/HomogenMatrixLine.idl @@ -0,0 +1,70 @@ +/************************************************************************* + * + * 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_drawing_HomogenMatrixLine_idl__ +#define __com_sun_star_drawing_HomogenMatrixLine_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: struct com::sun::star::drawing::HomogenMatrixLine +/** specifies a single line for a <type>HomogenMatrix</type>. + */ +published struct HomogenMatrixLine +{ + // DocMerge: empty anyway + double Column1; + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR HomogenMatrixLine::Column2 + + // DocMerge: empty anyway + double Column2; + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR HomogenMatrixLine::Column3 + + // DocMerge: empty anyway + double Column3; + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR HomogenMatrixLine::Column4 + + // DocMerge: empty anyway + double Column4; + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/HomogenMatrixLine3.idl b/offapi/com/sun/star/drawing/HomogenMatrixLine3.idl new file mode 100644 index 000000000000..9c0e817cbaa9 --- /dev/null +++ b/offapi/com/sun/star/drawing/HomogenMatrixLine3.idl @@ -0,0 +1,59 @@ +/************************************************************************* + * + * 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_drawing_HomogenMatrixLine3_idl__ +#define __com_sun_star_drawing_HomogenMatrixLine3_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** specifies a single line for a <type>HomogenMatrix3</type>. + */ +published struct HomogenMatrixLine3 +{ + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR HomogenMatrixLine3::Column1 + double Column1; + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR HomogenMatrixLine3::Column2 + double Column2; + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR HomogenMatrixLine3::Column3 + double Column3; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/HomogenMatrixLine4.idl b/offapi/com/sun/star/drawing/HomogenMatrixLine4.idl new file mode 100644 index 000000000000..c84123691d48 --- /dev/null +++ b/offapi/com/sun/star/drawing/HomogenMatrixLine4.idl @@ -0,0 +1,63 @@ +/************************************************************************* + * + * 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_drawing_HomogenMatrixLine4_idl__ +#define __com_sun_star_drawing_HomogenMatrixLine4_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** specifies a single line for a <type>HomogenMatrix4</type>. + */ +published struct HomogenMatrixLine4 +{ + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR HomogenMatrixLine4::Column1 + double Column1; + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR HomogenMatrixLine4::Column2 + double Column2; + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR HomogenMatrixLine4::Column3 + double Column3; + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR HomogenMatrixLine4::Column4 + double Column4; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/HorizontalDimensioning.idl b/offapi/com/sun/star/drawing/HorizontalDimensioning.idl new file mode 100644 index 000000000000..32afc18fe99b --- /dev/null +++ b/offapi/com/sun/star/drawing/HorizontalDimensioning.idl @@ -0,0 +1,79 @@ +/************************************************************************* + * + * 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_drawing_HorizontalDimensioning_idl__ +#define __com_sun_star_drawing_HorizontalDimensioning_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: enum com::sun::star::drawing::HorizontalDimensioning +/** The <type>HorizontalDimensioning</type> specifies the horizontal position + of the text of a dimensioning shape. + */ +published enum HorizontalDimensioning +{ + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::HorizontalDimensioning::AUTO + /** Set this to have the application select the best horizontal + position for the text. + */ + AUTO, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::HorizontalDimensioning::LEFT + /** The text is positioned to the left. + */ + LEFT, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::HorizontalDimensioning::CENTERED + /** The text is positioned at the center. + */ + CENTERED, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::HorizontalDimensioning::RIGHT + /** The text is positioned to the right. + */ + RIGHT + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/Layer.idl b/offapi/com/sun/star/drawing/Layer.idl new file mode 100644 index 000000000000..a8a4476966eb --- /dev/null +++ b/offapi/com/sun/star/drawing/Layer.idl @@ -0,0 +1,106 @@ +/************************************************************************* + * + * 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_drawing_Layer_idl__ +#define __com_sun_star_drawing_Layer_idl__ + +#ifndef __com_sun_star_beans_XPropertySet_idl__ +#include <com/sun/star/beans/XPropertySet.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: service com::sun::star::drawing::Layer +/** A layer is an entity inside a document which contains shapes. + + + <p>There could be zero or more <type>Shape</type>s attached to + such a layer. + + </p> + <p>The properties of a <type>Layer</type> instance affect all <type>Shape</type>s + attached to the Layer. + + </p> + + @see DrawingDocument + @see LayerManager + */ +published service Layer +{ + + + // DocMerge from xml: service com::sun::star::drawing::Layer: interface com::sun::star::beans::XPropertySet + /** The properties in this set affect all <type>Shape</type>s attached to + this Layer. + */ + interface com::sun::star::beans::XPropertySet; + + //------------------------------------------------------------------------- + + // DocMerge from xml: property com::sun::star::drawing::Layer::Name + /** The name of a <type>Layer</type> is used to identify the + <type>Layer</type> in the user interface. + */ + [property] string Name; + + //------------------------------------------------------------------------- + + // DocMerge from xml: property com::sun::star::drawing::Layer::IsVisible + /** If a <type>Layer</type> is not visible, the objects in this + <type>Layer</type> are not shown in the user interface. + */ + [property] boolean IsVisible; + + //------------------------------------------------------------------------- + + // DocMerge from xml: property com::sun::star::drawing::Layer::IsPrintable + /** If a <type>Layer</type> is not printable, the objects in + this <type>Layer</type> are not printed. + */ + [property] boolean IsPrintable; + + //------------------------------------------------------------------------- + + // DocMerge from xml: property com::sun::star::drawing::Layer::IsLocked + /** If a <type>Layer</type> is locked, the objects in this + <type>Layer</type> cannot be edited in the user interface. + */ + [property] boolean IsLocked; + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/LayerManager.idl b/offapi/com/sun/star/drawing/LayerManager.idl new file mode 100644 index 000000000000..ebcad6a021a8 --- /dev/null +++ b/offapi/com/sun/star/drawing/LayerManager.idl @@ -0,0 +1,80 @@ +/************************************************************************* + * + * 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_drawing_LayerManager_idl__ +#define __com_sun_star_drawing_LayerManager_idl__ + +#ifndef __com_sun_star_drawing_XLayerManager_idl__ +#include <com/sun/star/drawing/XLayerManager.idl> +#endif + +#ifndef __com_sun_star_container_XNameAccess_idl__ +#include <com/sun/star/container/XNameAccess.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: service com::sun::star::drawing::LayerManager +/** This service is provided by documents to support <type>Layer</type>s. + + @see DrawingDocument + */ +published service LayerManager +{ + + + // DocMerge from xml: service com::sun::star::drawing::LayerManager: interface com::sun::star::drawing::XLayerManager + /** gives you access to the existing <type>Layer</type>s by + index and makes it possible to add and remove <type>Layer</type>s and + to attach <type>Shape</type>s to <type>Layer</type>s. + + <p>The contents of the collection all support <type>Layer</type> + returned by <type>XLayer</type>. + */ + interface com::sun::star::drawing::XLayerManager; + + + // DocMerge from xml: service com::sun::star::drawing::LayerManager: interface com::sun::star::container::XNameAccess + /** gives access to the existing <type>Layer</type>s by name. + + <p>The contents of the collection all support <type>Layer</type> + returned by <type>XLayer</type>. + */ + interface com::sun::star::container::XNameAccess; + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/LayerType.idl b/offapi/com/sun/star/drawing/LayerType.idl new file mode 100644 index 000000000000..ee42aa7fc5da --- /dev/null +++ b/offapi/com/sun/star/drawing/LayerType.idl @@ -0,0 +1,77 @@ +/************************************************************************* + * + * 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_drawing_LayerType_idl__ +#define __com_sun_star_drawing_LayerType_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: enum com::sun::star::drawing::LayerType +/** This enumeration specifies the type of a drawing layer. + */ +published enum LayerType +{ + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::LayerType::LAYOUT + /** This is the layer for all standard shapes. + */ + LAYOUT, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::LayerType::CONTROLSA + /** This is the layer for the controls. + */ + CONTROLSA, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::LayerType::DIMENSIONIANG_LINES + /** This is the layer for all measure shapes. + */ + DIMENSIONIANG_LINES, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::LayerType::USER_DEFINED + /** There can be zero or more layers of this type. + */ + USER_DEFINED + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/LineDash.idl b/offapi/com/sun/star/drawing/LineDash.idl new file mode 100644 index 000000000000..3ffe6a0576cb --- /dev/null +++ b/offapi/com/sun/star/drawing/LineDash.idl @@ -0,0 +1,94 @@ +/************************************************************************* + * + * 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_drawing_LineDash_idl__ +#define __com_sun_star_drawing_LineDash_idl__ + +#ifndef __com_sun_star_drawing_DashStyle_idl__ +#include <com/sun/star/drawing/DashStyle.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: struct com::sun::star::drawing::LineDash +/** A <type>LineDash</type> defines a non-continuous line. + */ +published struct LineDash +{ + // DocMerge from xml: field com::sun::star::drawing::LineDash::Style + /** This sets the style of this <type>LineDash</type>. + */ + com::sun::star::drawing::DashStyle Style; + + //------------------------------------------------------------------------- + + // DocMerge from xml: field com::sun::star::drawing::LineDash::Dots + /** This is the number of dots in this <type>LineDash</type>. + */ + short Dots; + + //------------------------------------------------------------------------- + + // DocMerge from xml: field com::sun::star::drawing::LineDash::DotLen + /** This is the length of a dot. + */ + long DotLen; + + //------------------------------------------------------------------------- + + // DocMerge from xml: field com::sun::star::drawing::LineDash::Dashes + /** This is the number of dashes. + */ + short Dashes; + + //------------------------------------------------------------------------- + + // DocMerge from xml: field com::sun::star::drawing::LineDash::DashLen + /** This is the length of a single dash. + */ + long DashLen; + + //------------------------------------------------------------------------- + + // DocMerge from xml: field com::sun::star::drawing::LineDash::Distance + /** This is the distance between the dots. + */ + long Distance; + +}; + +//============================================================================= + +}; }; }; }; + + +#endif + diff --git a/offapi/com/sun/star/drawing/LineEndType.idl b/offapi/com/sun/star/drawing/LineEndType.idl new file mode 100644 index 000000000000..76041cbe1d7a --- /dev/null +++ b/offapi/com/sun/star/drawing/LineEndType.idl @@ -0,0 +1,92 @@ +/************************************************************************* + * + * 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_drawing_LineEndType_idl__ +#define __com_sun_star_drawing_LineEndType_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: enum com::sun::star::drawing::LineEndType +/** The <type>LineEndType</type> specifies the appearance of the bullet at the + end of a line. + + @deprecated + */ +published enum LineEndType +{ + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR LineEndType:: NONE, + + // DocMerge from xml: value com::sun::star::drawing::LineEndType::NONE + /** the line has no special end. + */ + NONE, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR LineEndType:: ARROW, + + // DocMerge from xml: value com::sun::star::drawing::LineEndType::ARROW + /** the line uses an arrow for the line end. + */ + ARROW, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR LineEndType:: CIRCLE, + + // DocMerge from xml: value com::sun::star::drawing::LineEndType::CIRCLE + /** the line uses a circle for the line end. + */ + CIRCLE, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR LineEndType:: SQUARE, + + // DocMerge from xml: value com::sun::star::drawing::LineEndType::SQUARE + /** the line uses a square for the line end. + */ + SQUARE, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR LineEndType:: SPECIAL + + // DocMerge from xml: value com::sun::star::drawing::LineEndType::SPECIAL + /** deprecated + */ + SPECIAL + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/LineJoint.idl b/offapi/com/sun/star/drawing/LineJoint.idl new file mode 100644 index 000000000000..bc1620414736 --- /dev/null +++ b/offapi/com/sun/star/drawing/LineJoint.idl @@ -0,0 +1,74 @@ +/************************************************************************* + * + * 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_drawing_LineJoint_idl__ +#define __com_sun_star_drawing_LineJoint_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: enum com::sun::star::drawing::LineJoint +/** The <type>LineJoint</type> defines rendering of joints between thick lines + */ +published enum LineJoint +{ + + // DocMerge from xml: value com::sun::star::drawing::LineJoint::NONE + /** the joint between lines will not be connected + */ + NONE, + + // DocMerge from xml: value com::sun::star::drawing::LineJoint::MIDDLE + /** the middle value between the joints is used + */ + MIDDLE, + + // DocMerge from xml: value com::sun::star::drawing::LineJoint::BEVEL + /** the edges of the thick lines will be joined by lines + */ + BEVEL, + + // DocMerge from xml: value com::sun::star::drawing::LineJoint::MITER + /** the lines join at intersections + */ + MITER, + + // DocMerge from xml: value com::sun::star::drawing::LineJoint::ROUND + /** the lines join with an arc + */ + ROUND +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/LineProperties.idl b/offapi/com/sun/star/drawing/LineProperties.idl new file mode 100644 index 000000000000..87455cf45c3e --- /dev/null +++ b/offapi/com/sun/star/drawing/LineProperties.idl @@ -0,0 +1,161 @@ +/************************************************************************* + * + * 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_drawing_LineProperties_idl__ +#define __com_sun_star_drawing_LineProperties_idl__ + +#ifndef __com_sun_star_drawing_LineStyle_idl__ +#include <com/sun/star/drawing/LineStyle.idl> +#endif + +#ifndef __com_sun_star_util_Color_idl__ +#include <com/sun/star/util/Color.idl> +#endif + +#ifndef __com_sun_star_drawing_LineDash_idl__ +#include <com/sun/star/drawing/LineDash.idl> +#endif + +#ifndef __com_sun_star_drawing_PolyPolygonBezierCoords_idl__ +#include <com/sun/star/drawing/PolyPolygonBezierCoords.idl> +#endif + +#ifndef __com_sun_star_drawing_LineJoint_idl__ +#include <com/sun/star/drawing/LineJoint.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** This is a set of properties to describe the style for rendering a Line. + <p>The properties for line ends and line starts are only supported by + shapes with open line ends. + */ +published service LineProperties +{ + /** This property contains the type of the line. + */ + [property] com::sun::star::drawing::LineStyle LineStyle; + + //------------------------------------------------------------------------- + + /** This property contains the dash of the line. + */ + [property] com::sun::star::drawing::LineDash LineDash; + + //------------------------------------------------------------------------- + + /** This property contains the name of the dash of the line. + */ + [optional, property] string LineDashName; + + //------------------------------------------------------------------------- + + /** This property contains the line color. + */ + [property] com::sun::star::util::Color LineColor; + + //------------------------------------------------------------------------- + + /** This property contains the extent of transparency. + */ + [property] short LineTransparence; + + //------------------------------------------------------------------------- + + /** This property contains the width of the line in 1/100th mm. + */ + [property] long LineWidth; + + //------------------------------------------------------------------------- + + /** This property defines the rendering of joints between thick lines + */ + [property] com::sun::star::drawing::LineJoint LineJoint; + + //------------------------------------------------------------------------- + + /** This property contains the name of the line start poly polygon bezier. + <p>If this string is empty, no line start polygon is rendered. + */ + [optional, property] string LineStartName; + + //------------------------------------------------------------------------- + + /** This property contains the name of the line end poly polygon bezier. + <p>If this string is empty, no line end polygon is rendered. + */ + [optional, property] string LineEndName; + + //------------------------------------------------------------------------- + + /** This property contains the line start in the form of a poly polygon bezier. + */ + [optional, property] com::sun::star::drawing::PolyPolygonBezierCoords LineStart; + + //------------------------------------------------------------------------- + + /** This property contains the line end in the form of a poly polygon bezier. + */ + [optional, property] com::sun::star::drawing::PolyPolygonBezierCoords LineEnd; + + //------------------------------------------------------------------------- + + /** If this property is <TRUE/>, the line will + start from the center of the polygon. + */ + [optional, property] boolean LineStartCenter; + + //------------------------------------------------------------------------- + + /** This property contains the width of the line start polygon. + */ + [optional, property] long LineStartWidth; + + //------------------------------------------------------------------------- + + /** If this property is <TRUE/>, the line will end + in the center of the polygon. + */ + [optional, property] boolean LineEndCenter; + + //------------------------------------------------------------------------- + + /** This property contains the width of the line end polygon. + */ + [optional, property] long LineEndWidth; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/LineShape.idl b/offapi/com/sun/star/drawing/LineShape.idl new file mode 100644 index 000000000000..8a98f94a6056 --- /dev/null +++ b/offapi/com/sun/star/drawing/LineShape.idl @@ -0,0 +1,82 @@ +/************************************************************************* + * + * 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_drawing_LineShape_idl__ +#define __com_sun_star_drawing_LineShape_idl__ + +#ifndef __com_sun_star_drawing_Shape_idl__ +#include <com/sun/star/drawing/Shape.idl> +#endif + +#ifndef __com_sun_star_drawing_LineProperties_idl__ +#include <com/sun/star/drawing/LineProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_PolyPolygonDescriptor_idl__ +#include <com/sun/star/drawing/PolyPolygonDescriptor.idl> +#endif + +#ifndef __com_sun_star_drawing_Text_idl__ +#include <com/sun/star/drawing/Text.idl> +#endif + +#ifndef __com_sun_star_drawing_ShadowProperties_idl__ +#include <com/sun/star/drawing/ShadowProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_RotationDescriptor_idl__ +#include <com/sun/star/drawing/RotationDescriptor.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** This service is for a simple <type>Shape</type> with lines. + */ +published service LineShape +{ + service com::sun::star::drawing::Shape; + + service com::sun::star::drawing::LineProperties; + + service com::sun::star::drawing::PolyPolygonDescriptor; + + service com::sun::star::drawing::Text; + + service com::sun::star::drawing::ShadowProperties; + + service com::sun::star::drawing::RotationDescriptor; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/LineStyle.idl b/offapi/com/sun/star/drawing/LineStyle.idl new file mode 100644 index 000000000000..ed2a28b4ced5 --- /dev/null +++ b/offapi/com/sun/star/drawing/LineStyle.idl @@ -0,0 +1,74 @@ +/************************************************************************* + * + * 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_drawing_LineStyle_idl__ +#define __com_sun_star_drawing_LineStyle_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: enum com::sun::star::drawing::LineStyle +/** specifies the appearance of the lines of a + shape. + */ +published enum LineStyle +{ + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR LineStyle:: NONE, + + // DocMerge from xml: value com::sun::star::drawing::LineStyle::NONE + /** the line is hidden. + */ + NONE, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR LineStyle:: SOLID, + + // DocMerge from xml: value com::sun::star::drawing::LineStyle::SOLID + /** the line is solid. + */ + SOLID, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR LineStyle:: DASH + + // DocMerge from xml: value com::sun::star::drawing::LineStyle::DASH + /** the line use dashes. + */ + DASH + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/MarkerTable.idl b/offapi/com/sun/star/drawing/MarkerTable.idl new file mode 100644 index 000000000000..0303c5573616 --- /dev/null +++ b/offapi/com/sun/star/drawing/MarkerTable.idl @@ -0,0 +1,64 @@ +/************************************************************************* + * + * 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_drawing_MarkerTable_idl__ +#define __com_sun_star_drawing_MarkerTable_idl__ + +#ifndef __com_sun_star_container_XNameContainer_idl__ +#include <com/sun/star/container/XNameContainer.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** this is a container for <type>PointSequence</type>s + + <p>It is used for example to access the line ends that + are used inside a document. + + @see DrawingDocumentFactory + @see PointSequence +*/ +published service MarkerTable +{ + /** this container lets you access the <type>PointSequence</type>s that + are indexed with a name. + + <p>Note: You can add new entries for later use, but you cannot + remove entries that are used inside the document. + */ + interface com::sun::star::container::XNameContainer; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/MasterPage.idl b/offapi/com/sun/star/drawing/MasterPage.idl new file mode 100644 index 000000000000..a56fc6d219c4 --- /dev/null +++ b/offapi/com/sun/star/drawing/MasterPage.idl @@ -0,0 +1,77 @@ +/************************************************************************* + * + * 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_drawing_MasterPage_idl__ +#define __com_sun_star_drawing_MasterPage_idl__ + +#ifndef __com_sun_star_drawing_GenericDrawPage_idl__ +#include <com/sun/star/drawing/GenericDrawPage.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: service com::sun::star::drawing::MasterPage +/** This service is a single master page inside a drawing document. + + + <p>It serves as a background page for zero or more <type>DrawPage</type>s. + Since this service is derived from the service <type>GenericDrawPage</type>, + it can be used as a draw page with three differences: + </p> + <ol> + <li>It is not linked to any other <type>MasterPage</type>. + </li> + <li>It cannot be removed from a document as long as one or + more instances of <type>DrawPage</type> are linked to it. + </li> + <li>Modifications to a <type>MasterPage</type> are instantly visible on + every <type>DrawPage</type> that is linked to it. + </li> + </ol> + */ +published service MasterPage +{ + + + // DocMerge from xml: service com::sun::star::drawing::MasterPage: service com::sun::star::drawing::GenericDrawPage + /** This service describes the base functionality that every + draw/master page has. + */ + service com::sun::star::drawing::GenericDrawPage; + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/MasterPages.idl b/offapi/com/sun/star/drawing/MasterPages.idl new file mode 100644 index 000000000000..6c7ab4c8b9ce --- /dev/null +++ b/offapi/com/sun/star/drawing/MasterPages.idl @@ -0,0 +1,60 @@ +/************************************************************************* + * + * 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_drawing_MasterPages_idl__ +#define __com_sun_star_drawing_MasterPages_idl__ + +#ifndef __com_sun_star_drawing_XDrawPages_idl__ +#include <com/sun/star/drawing/XDrawPages.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** provides access to a container of <type>MasterPage</type>s + and makes it possible for them to be manipulated. + + @see XMasterPagesSupplier + @see DrawingDocument + */ +published service MasterPages +{ + /** lets you access and create <type>MasterPage</type>s + */ + interface com::sun::star::drawing::XDrawPages; + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/MeasureKind.idl b/offapi/com/sun/star/drawing/MeasureKind.idl new file mode 100644 index 000000000000..baed2d178898 --- /dev/null +++ b/offapi/com/sun/star/drawing/MeasureKind.idl @@ -0,0 +1,69 @@ +/************************************************************************* + * + * 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_drawing_MeasureKind_idl__ +#define __com_sun_star_drawing_MeasureKind_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: enum com::sun::star::drawing::MeasureKind +/** determines whether a measured shape is a standard + measure or a radius measure. + + @deprecated + */ +published enum MeasureKind +{ + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR MeasureKind:: STANDARD, + + // DocMerge from xml: value com::sun::star::drawing::MeasureKind::STANDARD + /** use the length measurement. + */ + STANDARD, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR MeasureKind:: RADIUS + + // DocMerge from xml: value com::sun::star::drawing::MeasureKind::RADIUS + /** use the radius measurement. + This option cannot be used from the GUI Interface. + */ + RADIUS + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/MeasureProperties.idl b/offapi/com/sun/star/drawing/MeasureProperties.idl new file mode 100644 index 000000000000..ab02f5605e91 --- /dev/null +++ b/offapi/com/sun/star/drawing/MeasureProperties.idl @@ -0,0 +1,154 @@ +/************************************************************************* + * + * 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_drawing_MeasureProperties_idl__ +#define __com_sun_star_drawing_MeasureProperties_idl__ + +#ifndef __com_sun_star_drawing_MeasureKind_idl__ +#include <com/sun/star/drawing/MeasureKind.idl> +#endif + +#ifndef __com_sun_star_drawing_MeasureTextHorzPos_idl__ +#include <com/sun/star/drawing/MeasureTextHorzPos.idl> +#endif + +#ifndef __com_sun_star_drawing_MeasureTextVertPos_idl__ +#include <com/sun/star/drawing/MeasureTextVertPos.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** This service describes a <type>MeasureShape</type>. + */ +published service MeasureProperties +{ + //------------------------------------------------------------------------- + /** If this property is <TRUE/>, the measure is drawn below the + reference edge instead of above it. + */ + [property] boolean MeasureBelowReferenceEdge; + + //------------------------------------------------------------------------- + /** This is the length of the first help line. + */ + [property] long MeasureHelpLine1Length; + + //------------------------------------------------------------------------- + /** This is the length of the second help line. + */ + [property] long MeasureHelpLine2Length; + + //------------------------------------------------------------------------- + /** This is the distance from the measure line to the start of the + help lines. + */ + [property] long MeasureHelpLineDistance; + + //------------------------------------------------------------------------- + /** This is the overhang of the two help lines. + */ + [property] long MeasureHelpLineOverhang; + + //------------------------------------------------------------------------- + /** This enumeration specifies the <type>MeasureKind</type>. + */ + [property] com::sun::star::drawing::MeasureKind MeasureKind; + + //------------------------------------------------------------------------- + /** This is the distance from the reference edge to the measure line. + */ + [property] long MeasureLineDistance; + + //------------------------------------------------------------------------- + /** This is the overhang of the reference line over the help lines. + */ + [property] long MeasureOverhang; + + //------------------------------------------------------------------------- + /** If this is <TRUE/>, the unit of measure is shown in the measure text. + */ + [property] boolean MeasureShowUnit; + + //------------------------------------------------------------------------- + /** If this is <TRUE/>, the angle of the measure is set automatically. + */ + [property] boolean MeasureTextAutoAngle; + + //------------------------------------------------------------------------- + /** This is the automatic angle. + */ + [property] long MeasureTextAutoAngleView; + + //------------------------------------------------------------------------- + /** This is the fixed angle. + */ + [property] long MeasureTextFixedAngle; + + //------------------------------------------------------------------------- + /** This is the horizontal position of the measure text. + */ + [property] com::sun::star::drawing::MeasureTextHorzPos MeasureTextHorizontalPosition; + + //------------------------------------------------------------------------- + /** This is the vertical position of the text. + */ + [property] com::sun::star::drawing::MeasureTextVertPos MeasureTextVerticalPosition; + + //------------------------------------------------------------------------- + /** If this value is <TRUE/>, the measure has a fixed angle. + */ + [property] boolean MeasureTextIsFixedAngle; + + //------------------------------------------------------------------------- + /** If this value is <TRUE/>, the text is rotated 90 degrees. + */ + [property] boolean MeasureTextRotate90; + + //------------------------------------------------------------------------- + /** If this value is <TRUE/>, the text is printed upside down. + */ + [property] boolean MeasureTextUpsideDown; + + //------------------------------------------------------------------------- + /** This value is the number of decimal places that is used to format the + measure value. + + @since OOo 1.1.2 + */ + [optional, property] short MeasureDecimalPlaces; + }; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/MeasureShape.idl b/offapi/com/sun/star/drawing/MeasureShape.idl new file mode 100644 index 000000000000..7422b2d51d79 --- /dev/null +++ b/offapi/com/sun/star/drawing/MeasureShape.idl @@ -0,0 +1,94 @@ +/************************************************************************* + * + * 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_drawing_MeasureShape_idl__ +#define __com_sun_star_drawing_MeasureShape_idl__ + +#ifndef __com_sun_star_drawing_Shape_idl__ +#include <com/sun/star/drawing/Shape.idl> +#endif + +#ifndef __com_sun_star_drawing_MeasureProperties_idl__ +#include <com/sun/star/drawing/MeasureProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_Text_idl__ +#include <com/sun/star/drawing/Text.idl> +#endif + +#ifndef __com_sun_star_drawing_ShadowProperties_idl__ +#include <com/sun/star/drawing/ShadowProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_LineProperties_idl__ +#include <com/sun/star/drawing/LineProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_RotationDescriptor_idl__ +#include <com/sun/star/drawing/RotationDescriptor.idl> +#endif + +#ifndef __com_sun_star_awt_Point_idl__ +#include <com/sun/star/awt/Point.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** This service is for a dimensioning shape. + */ +published service MeasureShape +{ + service com::sun::star::drawing::Shape; + + service com::sun::star::drawing::MeasureProperties; + + service com::sun::star::drawing::LineProperties; + + service com::sun::star::drawing::Text; + + service com::sun::star::drawing::ShadowProperties; + + service com::sun::star::drawing::RotationDescriptor; + + /** this point is the start of the measured distance */ + [property] com::sun::star::awt::Point StartPosition; + + //------------------------------------------------------------------------- + + /** this point is the end of the measured distance */ + [property] com::sun::star::awt::Point EndPosition; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/MeasureTextHorzPos.idl b/offapi/com/sun/star/drawing/MeasureTextHorzPos.idl new file mode 100644 index 000000000000..9a24a2583ea5 --- /dev/null +++ b/offapi/com/sun/star/drawing/MeasureTextHorzPos.idl @@ -0,0 +1,75 @@ +/************************************************************************* + * + * 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_drawing_MeasureTextHorzPos_idl__ +#define __com_sun_star_drawing_MeasureTextHorzPos_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: enum com::sun::star::drawing::MeasureTextHorzPos +/** This enumeration defines the relative horizontal placement of the text + inside a measure shape. + */ +published enum MeasureTextHorzPos +{ + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR MeasureTextHorzPos:: AUTO, + + // DocMerge: empty anyway + AUTO, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR MeasureTextHorzPos:: LEFTOUTSIDE, + + // DocMerge: empty anyway + LEFTOUTSIDE, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR MeasureTextHorzPos:: INSIDE, + + // DocMerge: empty anyway + INSIDE, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR MeasureTextHorzPos:: RIGHTOUTSIDE + + // DocMerge: empty anyway + RIGHTOUTSIDE + +}; + +//============================================================================= + +}; }; }; }; + + +#endif + diff --git a/offapi/com/sun/star/drawing/MeasureTextVertPos.idl b/offapi/com/sun/star/drawing/MeasureTextVertPos.idl new file mode 100644 index 000000000000..d1b61991292f --- /dev/null +++ b/offapi/com/sun/star/drawing/MeasureTextVertPos.idl @@ -0,0 +1,80 @@ +/************************************************************************* + * + * 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_drawing_MeasureTextVertPos_idl__ +#define __com_sun_star_drawing_MeasureTextVertPos_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: enum com::sun::star::drawing::MeasureTextVertPos +/** This enumeration defines the relative vertical placement of the text + inside a measure shape. + */ +published enum MeasureTextVertPos +{ + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR MeasureTextVertPos:: AUTO, + + // DocMerge: empty anyway + AUTO, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR MeasureTextVertPos:: EAST, + + // DocMerge: empty anyway + EAST, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR MeasureTextVertPos:: BREAKEDLINE, + + // DocMerge: empty anyway + BREAKEDLINE, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR MeasureTextVertPos:: WEST, + + // DocMerge: empty anyway + WEST, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR MeasureTextVertPos:: CENTERED + + // DocMerge: empty anyway + CENTERED + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/MirrorAxis.idl b/offapi/com/sun/star/drawing/MirrorAxis.idl new file mode 100644 index 000000000000..4324a37c3f2b --- /dev/null +++ b/offapi/com/sun/star/drawing/MirrorAxis.idl @@ -0,0 +1,63 @@ +/************************************************************************* + * + * 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_drawing_MirrorAxis_idl__ +#define __com_sun_star_drawing_MirrorAxis_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: enum com::sun::star::drawing::MirrorAxis +/** defines an axis for simple mirroring. + */ +published enum MirrorAxis +{ + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::MirrorAxis::VERTICAL + /** mirror to the vertical axis + */ + VERTICAL, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::MirrorAxis::HORIZONTAL + /** mirror to the horizontal axis + */ + HORIZONTAL + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/NormalsKind.idl b/offapi/com/sun/star/drawing/NormalsKind.idl new file mode 100644 index 000000000000..b9bb5f9cb056 --- /dev/null +++ b/offapi/com/sun/star/drawing/NormalsKind.idl @@ -0,0 +1,73 @@ +/************************************************************************* + * + * 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_drawing_NormalsKind_idl__ +#define __com_sun_star_drawing_NormalsKind_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: enum com::sun::star::drawing::NormalsKind +/** specifies in which way the standard normals + for an object are produced. + */ +published enum NormalsKind +{ + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::NormalsKind::SPECIFIC + /** does not produce standard normals, but leaves + the object-specific ones untouched. + */ + SPECIFIC, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::NormalsKind::FLAT + /** forces one normal per flat part. + */ + FLAT, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::NormalsKind::SPHERE + /** forces normals to think that the object is a + sphere. + */ + SPHERE + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/OLE2Shape.idl b/offapi/com/sun/star/drawing/OLE2Shape.idl new file mode 100644 index 000000000000..52eb671bdceb --- /dev/null +++ b/offapi/com/sun/star/drawing/OLE2Shape.idl @@ -0,0 +1,89 @@ +/************************************************************************* + * + * 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_drawing_OLE2Shape_idl__ +#define __com_sun_star_drawing_OLE2Shape_idl__ + +#ifndef __com_sun_star_drawing_XShapeDescriptor_idl__ +#include <com/sun/star/drawing/XShapeDescriptor.idl> +#endif + +#ifndef __com_sun_star_drawing_Shape_idl__ +#include <com/sun/star/drawing/Shape.idl> +#endif + +#ifndef __com_sun_star_frame_XModel_idl__ +#include <com/sun/star/frame/XModel.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module drawing { + +//============================================================================= +/** This service is for an ole shape. +*/ +published service OLE2Shape +{ + service com::sun::star::drawing::Shape; + + //------------------------------------------------------------------------- + + /** If you get this property you get the CLSID of the OLE2 document stream + contained in this OLE2 shape. If you set it, an empty OLE2 document stream + with this CLSID is created within this OLE2 shape. + */ + [property] string CLSID; + + //------------------------------------------------------------------------- + + /** this is the internal storage name that keeps this OLE2 persist. + */ + [property] string PersistName; + + //------------------------------------------------------------------------- + + /** This is the model for the OLE2 inside this shape. + <p>This property returns an empty reference if the ole2 is not an + Office component. + + */ + [readonly, property] com::sun::star::frame::XModel Model; + + //------------------------------------------------------------------------- + + /** This property returns <TRUE/> for all OLE2 that are internal + Office components. + */ + [readonly, property] boolean IsInternal; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/OpenBezierShape.idl b/offapi/com/sun/star/drawing/OpenBezierShape.idl new file mode 100644 index 000000000000..d515efe70a43 --- /dev/null +++ b/offapi/com/sun/star/drawing/OpenBezierShape.idl @@ -0,0 +1,84 @@ +/************************************************************************* + * + * 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_drawing_OpenBezierShape_idl__ +#define __com_sun_star_drawing_OpenBezierShape_idl__ + +#ifndef __com_sun_star_drawing_Shape_idl__ +#include <com/sun/star/drawing/Shape.idl> +#endif + +#ifndef __com_sun_star_drawing_LineProperties_idl__ +#include <com/sun/star/drawing/LineProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_PolyPolygonBezierDescriptor_idl__ +#include <com/sun/star/drawing/PolyPolygonBezierDescriptor.idl> +#endif + +#ifndef __com_sun_star_drawing_Text_idl__ +#include <com/sun/star/drawing/Text.idl> +#endif + +#ifndef __com_sun_star_drawing_ShadowProperties_idl__ +#include <com/sun/star/drawing/ShadowProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_RotationDescriptor_idl__ +#include <com/sun/star/drawing/RotationDescriptor.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** This service is for an open bezier shape. + */ +published service OpenBezierShape +{ + service com::sun::star::drawing::Shape; + + service com::sun::star::drawing::LineProperties; + + service com::sun::star::drawing::PolyPolygonBezierDescriptor; + + service com::sun::star::drawing::Text; + + service com::sun::star::drawing::ShadowProperties; + + service com::sun::star::drawing::RotationDescriptor; + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/PageShape.idl b/offapi/com/sun/star/drawing/PageShape.idl new file mode 100644 index 000000000000..d3bf315b8ed8 --- /dev/null +++ b/offapi/com/sun/star/drawing/PageShape.idl @@ -0,0 +1,67 @@ +/************************************************************************* + * + * 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_drawing_PageShape_idl__ +#define __com_sun_star_drawing_PageShape_idl__ + +#ifndef __com_sun_star_drawing_Shape_idl__ +#include <com/sun/star/drawing/Shape.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: service com::sun::star::drawing::PageShape +/** This service is for a page shape. + A page shape displays a preview of another page. These shapes + are used inside notes pages to preview the corresponding + drawing page. Theyre also used in the handout page to preview + the printing position and order of pages + */ +published service PageShape +{ + // DocMerge: empty anyway + service com::sun::star::drawing::Shape; + + /** this is the page number that is used for the preview. + For page shapes on notes pages, this can't be changed. + For page shapes on handout pages, this value only + describes the relative order of the different page + shapes on the page. + */ + [optional, property] long PageNumber; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/PluginShape.idl b/offapi/com/sun/star/drawing/PluginShape.idl new file mode 100644 index 000000000000..aaa8b3493c7d --- /dev/null +++ b/offapi/com/sun/star/drawing/PluginShape.idl @@ -0,0 +1,82 @@ +/************************************************************************* + * + * 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_drawing_PluginShape_idl__ +#define __com_sun_star_drawing_PluginShape_idl__ + +#ifndef __com_sun_star_drawing_Shape_idl__ +#include <com/sun/star/drawing/Shape.idl> +#endif + +#ifndef __com_sun_star_beans_PropertyValue_idl__ +#include <com/sun/star/beans/PropertyValue.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module drawing { + +//============================================================================= +/** This <type>Shape</type> encapsulates a plugin. + + <p>A plugin is a binary object that is plugged into a document to represent + a media-type that is not handled natively by the application. +*/ +published service PluginShape +{ + /** basic service for position, size and z-order. + + <p>A <type>PluginShape</type> cannot be rotated. + */ + service com::sun::star::drawing::Shape; + + //------------------------------------------------------------------------- + + /** This property specifies the media-type to which this plugin should + be registered. + */ + [property] string PluginMimeType; + + //------------------------------------------------------------------------- + + /** This property specifies the url to the binary object. + */ + [property] string PluginURL; + + //------------------------------------------------------------------------- + + /** This sequence contains paramaters that are passed to the application + that renders the plugin when it is initialized. + */ + [property] sequence< com::sun::star::beans::PropertyValue > PluginCommands; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/PointSequence.idl b/offapi/com/sun/star/drawing/PointSequence.idl new file mode 100644 index 000000000000..6d74d8ee3306 --- /dev/null +++ b/offapi/com/sun/star/drawing/PointSequence.idl @@ -0,0 +1,48 @@ +/************************************************************************* + * + * 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_drawing_PointSequence_idl__ +#define __com_sun_star_drawing_PointSequence_idl__ + +#ifndef __com_sun_star_awt_Point_idl__ +#include <com/sun/star/awt/Point.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module drawing { + +//============================================================================= +/** +*/ +published typedef sequence<com::sun::star::awt::Point> PointSequence; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/PointSequenceSequence.idl b/offapi/com/sun/star/drawing/PointSequenceSequence.idl new file mode 100644 index 000000000000..518751635173 --- /dev/null +++ b/offapi/com/sun/star/drawing/PointSequenceSequence.idl @@ -0,0 +1,48 @@ +/************************************************************************* + * + * 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_drawing_PointSequenceSequence_idl__ +#define __com_sun_star_drawing_PointSequenceSequence_idl__ + +#ifndef __com_sun_star_drawing_PointSequence_idl__ +#include <com/sun/star/drawing/PointSequence.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module drawing { + +//============================================================================= +/** +*/ +published typedef sequence<PointSequence> PointSequenceSequence; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/PolyLineShape.idl b/offapi/com/sun/star/drawing/PolyLineShape.idl new file mode 100644 index 000000000000..c8ddb5a1e051 --- /dev/null +++ b/offapi/com/sun/star/drawing/PolyLineShape.idl @@ -0,0 +1,84 @@ +/************************************************************************* + * + * 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_drawing_PolyLineShape_idl__ +#define __com_sun_star_drawing_PolyLineShape_idl__ + +#ifndef __com_sun_star_drawing_Shape_idl__ +#include <com/sun/star/drawing/Shape.idl> +#endif + +#ifndef __com_sun_star_drawing_LineProperties_idl__ +#include <com/sun/star/drawing/LineProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_PolyPolygonDescriptor_idl__ +#include <com/sun/star/drawing/PolyPolygonDescriptor.idl> +#endif + +#ifndef __com_sun_star_drawing_Text_idl__ +#include <com/sun/star/drawing/Text.idl> +#endif + +#ifndef __com_sun_star_drawing_ShadowProperties_idl__ +#include <com/sun/star/drawing/ShadowProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_RotationDescriptor_idl__ +#include <com/sun/star/drawing/RotationDescriptor.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** This service is for a polyline shape. + <p>A polyline has one or more straight lines.</p> + */ +published service PolyLineShape +{ + service com::sun::star::drawing::Shape; + + service com::sun::star::drawing::LineProperties; + + service com::sun::star::drawing::PolyPolygonDescriptor; + + service com::sun::star::drawing::Text; + + service com::sun::star::drawing::ShadowProperties; + + service com::sun::star::drawing::RotationDescriptor; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/PolyPolygonBezierCoords.idl b/offapi/com/sun/star/drawing/PolyPolygonBezierCoords.idl new file mode 100644 index 000000000000..bd671c1bbe5a --- /dev/null +++ b/offapi/com/sun/star/drawing/PolyPolygonBezierCoords.idl @@ -0,0 +1,66 @@ +/************************************************************************* + * + * 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_drawing_PolyPolygonBezierCoords_idl__ +#define __com_sun_star_drawing_PolyPolygonBezierCoords_idl__ + +#ifndef __com_sun_star_drawing_PointSequenceSequence_idl__ +#include <com/sun/star/drawing/PointSequenceSequence.idl> +#endif + +#ifndef __com_sun_star_drawing_FlagSequenceSequence_idl__ +#include <com/sun/star/drawing/FlagSequenceSequence.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: struct com::sun::star::drawing::PolyPolygonBezierCoords +/** specifies the coordinates for a poly polygon bezier. + */ +published struct PolyPolygonBezierCoords +{ + // DocMerge: empty anyway + com::sun::star::drawing::PointSequenceSequence Coordinates; + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR PolyPolygonBezierCoords::Flags + + // DocMerge: empty anyway + com::sun::star::drawing::FlagSequenceSequence Flags; + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/PolyPolygonBezierDescriptor.idl b/offapi/com/sun/star/drawing/PolyPolygonBezierDescriptor.idl new file mode 100644 index 000000000000..d498c4d2d4f8 --- /dev/null +++ b/offapi/com/sun/star/drawing/PolyPolygonBezierDescriptor.idl @@ -0,0 +1,75 @@ +/************************************************************************* + * + * 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_drawing_PolyPolygonBezierDescriptor_idl__ +#define __com_sun_star_drawing_PolyPolygonBezierDescriptor_idl__ + +#ifndef __com_sun_star_drawing_PolygonKind_idl__ +#include <com/sun/star/drawing/PolygonKind.idl> +#endif + +#ifndef __com_sun_star_drawing_PolyPolygonBezierCoords_idl__ +#include <com/sun/star/drawing/PolyPolygonBezierCoords.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** This service describes a polypolygonbezier. + <p>A polypolygonbezier consists of multiple bezier polygons combined + in one.</p> + */ +published service PolyPolygonBezierDescriptor +{ + //------------------------------------------------------------------------- + + /** This is the type of this polygon. + */ + [readonly, property] com::sun::star::drawing::PolygonKind PolygonKind; + + //------------------------------------------------------------------------- + + /** These are the bezier points of this polygon. + */ + [property] com::sun::star::drawing::PolyPolygonBezierCoords PolyPolygonBezier; + + //------------------------------------------------------------------------- + + /** These are the untransformed bezier coordinates of this polygon. + */ + [property] com::sun::star::drawing::PolyPolygonBezierCoords Geometry; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/PolyPolygonBezierShape.idl b/offapi/com/sun/star/drawing/PolyPolygonBezierShape.idl new file mode 100644 index 000000000000..3ceabb8f129d --- /dev/null +++ b/offapi/com/sun/star/drawing/PolyPolygonBezierShape.idl @@ -0,0 +1,90 @@ +/************************************************************************* + * + * 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_drawing_PolyPolygonBezierShape_idl__ +#define __com_sun_star_drawing_PolyPolygonBezierShape_idl__ + +#ifndef __com_sun_star_drawing_Shape_idl__ +#include <com/sun/star/drawing/Shape.idl> +#endif + +#ifndef __com_sun_star_drawing_LineProperties_idl__ +#include <com/sun/star/drawing/LineProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_FillProperties_idl__ +#include <com/sun/star/drawing/FillProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_PolyPolygonBezierDescriptor_idl__ +#include <com/sun/star/drawing/PolyPolygonBezierDescriptor.idl> +#endif + +#ifndef __com_sun_star_drawing_Text_idl__ +#include <com/sun/star/drawing/Text.idl> +#endif + +#ifndef __com_sun_star_drawing_ShadowProperties_idl__ +#include <com/sun/star/drawing/ShadowProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_RotationDescriptor_idl__ +#include <com/sun/star/drawing/RotationDescriptor.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: service com::sun::star::drawing::PolyPolygonBezierShape +/** This service specifies a polypolygon bezier shape. + */ +published service PolyPolygonBezierShape +{ + service com::sun::star::drawing::Shape; + + service com::sun::star::drawing::LineProperties; + + service com::sun::star::drawing::FillProperties; + + service com::sun::star::drawing::PolyPolygonBezierDescriptor; + + service com::sun::star::drawing::Text; + + service com::sun::star::drawing::ShadowProperties; + + service com::sun::star::drawing::RotationDescriptor; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/PolyPolygonDescriptor.idl b/offapi/com/sun/star/drawing/PolyPolygonDescriptor.idl new file mode 100644 index 000000000000..3626fb0ae7fd --- /dev/null +++ b/offapi/com/sun/star/drawing/PolyPolygonDescriptor.idl @@ -0,0 +1,74 @@ +/************************************************************************* + * + * 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_drawing_PolyPolygonDescriptor_idl__ +#define __com_sun_star_drawing_PolyPolygonDescriptor_idl__ + +#ifndef __com_sun_star_drawing_PolygonKind_idl__ +#include <com/sun/star/drawing/PolygonKind.idl> +#endif + +#ifndef __com_sun_star_drawing_PointSequenceSequence_idl__ +#include <com/sun/star/drawing/PointSequenceSequence.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** This service describes a polypolygon. + <p>A polypolygon consists of multiple polygons combined in one.</p> + */ +published service PolyPolygonDescriptor +{ + //------------------------------------------------------------------------- + + /** This is the type of polygon. + */ + [readonly, property] com::sun::star::drawing::PolygonKind PolygonKind; + + //------------------------------------------------------------------------- + + /** These are the reference points for this polygon. + */ + [property] com::sun::star::drawing::PointSequenceSequence PolyPolygon; + + //------------------------------------------------------------------------- + + /** These are the untransformed points of this polygon. + */ + [property] com::sun::star::drawing::PointSequenceSequence Geometry; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/PolyPolygonShape.idl b/offapi/com/sun/star/drawing/PolyPolygonShape.idl new file mode 100644 index 000000000000..a72b00d8f1a8 --- /dev/null +++ b/offapi/com/sun/star/drawing/PolyPolygonShape.idl @@ -0,0 +1,92 @@ +/************************************************************************* + * + * 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_drawing_PolyPolygonShape_idl__ +#define __com_sun_star_drawing_PolyPolygonShape_idl__ + +#ifndef __com_sun_star_drawing_Shape_idl__ +#include <com/sun/star/drawing/Shape.idl> +#endif + +#ifndef __com_sun_star_drawing_LineProperties_idl__ +#include <com/sun/star/drawing/LineProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_FillProperties_idl__ +#include <com/sun/star/drawing/FillProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_PolyPolygonDescriptor_idl__ +#include <com/sun/star/drawing/PolyPolygonDescriptor.idl> +#endif + +#ifndef __com_sun_star_drawing_Text_idl__ +#include <com/sun/star/drawing/Text.idl> +#endif + +#ifndef __com_sun_star_drawing_ShadowProperties_idl__ +#include <com/sun/star/drawing/ShadowProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_RotationDescriptor_idl__ +#include <com/sun/star/drawing/RotationDescriptor.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** This service is for a polygon shape. + <p>A polypolygon has 2 or more straight lines, with the first and + last point connected by a straight line.</p> + */ +published service PolyPolygonShape +{ + service com::sun::star::drawing::Shape; + + service com::sun::star::drawing::LineProperties; + + service com::sun::star::drawing::FillProperties; + + service com::sun::star::drawing::PolyPolygonDescriptor; + + service com::sun::star::drawing::Text; + + service com::sun::star::drawing::ShadowProperties; + + service com::sun::star::drawing::RotationDescriptor; + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/PolyPolygonShape3D.idl b/offapi/com/sun/star/drawing/PolyPolygonShape3D.idl new file mode 100644 index 000000000000..721839255774 --- /dev/null +++ b/offapi/com/sun/star/drawing/PolyPolygonShape3D.idl @@ -0,0 +1,68 @@ +/************************************************************************* + * + * 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_drawing_PolyPolygonShape3D_idl__ +#define __com_sun_star_drawing_PolyPolygonShape3D_idl__ + +#ifndef __com_sun_star_drawing_DoubleSequenceSequence_idl__ +#include <com/sun/star/drawing/DoubleSequenceSequence.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: struct com::sun::star::drawing::PolyPolygonShape3D +/** specifies the coordinates of a 3-dimensional poly polygon. + */ +published struct PolyPolygonShape3D +{ + // DocMerge: empty anyway + com::sun::star::drawing::DoubleSequenceSequence SequenceX; + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR PolyPolygonShape3D::SequenceY + + // DocMerge: empty anyway + com::sun::star::drawing::DoubleSequenceSequence SequenceY; + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR PolyPolygonShape3D::SequenceZ + + // DocMerge: empty anyway + com::sun::star::drawing::DoubleSequenceSequence SequenceZ; + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/PolygonFlags.idl b/offapi/com/sun/star/drawing/PolygonFlags.idl new file mode 100644 index 000000000000..2bb6d565398f --- /dev/null +++ b/offapi/com/sun/star/drawing/PolygonFlags.idl @@ -0,0 +1,81 @@ +/************************************************************************* + * + * 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_drawing_PolygonFlags_idl__ +#define __com_sun_star_drawing_PolygonFlags_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: enum com::sun::star::drawing::PolygonFlags +/** defines how a bezier curve goes through a point. + */ +published enum PolygonFlags +{ + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR PolygonFlags:: NORMAL, + + // DocMerge from xml: value com::sun::star::drawing::PolygonFlags::NORMAL + /** the point is normal, from the curve discussion view. + */ + NORMAL, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR PolygonFlags:: SMOOTH, + + // DocMerge from xml: value com::sun::star::drawing::PolygonFlags::SMOOTH + /** the point is smooth, the first derivation from the curve discussion view. + */ + SMOOTH, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR PolygonFlags:: CONTROL, + + // DocMerge from xml: value com::sun::star::drawing::PolygonFlags::CONTROL + /** the point is a control point, to control the curve from the user interface. + */ + CONTROL, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR PolygonFlags:: SYMMETRIC + + // DocMerge from xml: value com::sun::star::drawing::PolygonFlags::SYMMETRIC + /** the point is symmetric, the second derivation from the curve discussion view. + */ + SYMMETRIC + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/PolygonKind.idl b/offapi/com/sun/star/drawing/PolygonKind.idl new file mode 100644 index 000000000000..a260401f697d --- /dev/null +++ b/offapi/com/sun/star/drawing/PolygonKind.idl @@ -0,0 +1,112 @@ +/************************************************************************* + * + * 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_drawing_PolygonKind_idl__ +#define __com_sun_star_drawing_PolygonKind_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: enum com::sun::star::drawing::PolygonKind +/** This enumeration defines the type of polygon. + */ +published enum PolygonKind +{ + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::PolygonKind::LINE + /** This is the PolygonKind for a LineShape. + */ + LINE, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::PolygonKind::POLY + /** This is the PolygonKind for a PolyPolygonShape. + */ + POLY, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::PolygonKind::PLIN + /** This is the PolygonKind for a PolyLineShape. + */ + PLIN, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::PolygonKind::PATHLINE + /** This is the PolygonKind for an OpenBezierShape. + */ + PATHLINE, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::PolygonKind::PATHFILL + /** This is the PolygonKind for a ClosedBezierShape. + */ + PATHFILL, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::PolygonKind::FREELINE + /** This is the PolygonKind for an OpenFreeHandShape. + */ + FREELINE, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::PolygonKind::FREEFILL + /** This is the PolygonKind for a ClosedFreeHandShape. + */ + FREEFILL, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::PolygonKind::PATHPOLY + /** This is the PolygonKind for a PolyPolygonPathShape. + */ + PATHPOLY, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::PolygonKind::PATHPLIN + /** This is the PolygonKind for a PolyLinePathShape. + */ + PATHPLIN + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/Position3D.idl b/offapi/com/sun/star/drawing/Position3D.idl new file mode 100644 index 000000000000..658cca3f4b76 --- /dev/null +++ b/offapi/com/sun/star/drawing/Position3D.idl @@ -0,0 +1,70 @@ +/************************************************************************* + * + * 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_drawing_Position3D_idl__ +#define __com_sun_star_drawing_Position3D_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: struct com::sun::star::drawing::Position3D +/** specifies a 3-dimensional point. + */ +published struct Position3D +{ + // DocMerge from xml: field com::sun::star::drawing::Position3D::PositionX + /** the position on the X-Axis in the 3D room in 100th of millimeters + */ + double PositionX; + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR Position3D::PositionY + + // DocMerge from xml: field com::sun::star::drawing::Position3D::PositionY + /** the position on the Y-Axis in the 3D room in 100th of millimeters + */ + double PositionY; + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR Position3D::PositionZ + + // DocMerge from xml: field com::sun::star::drawing::Position3D::PositionZ + /** the position on the Z-Axis in the 3D room in 100th of millimeters + */ + double PositionZ; + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/ProjectionMode.idl b/offapi/com/sun/star/drawing/ProjectionMode.idl new file mode 100644 index 000000000000..7af863757daa --- /dev/null +++ b/offapi/com/sun/star/drawing/ProjectionMode.idl @@ -0,0 +1,66 @@ +/************************************************************************* + * + * 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_drawing_ProjectionMode_idl__ +#define __com_sun_star_drawing_ProjectionMode_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: enum com::sun::star::drawing::ProjectionMode +/** defines whether the 3D objects are to be + drawn in perspective or parallel projection. + */ +published enum ProjectionMode +{ + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR ProjectionMode:: PARALLEL, + + // DocMerge from xml: value com::sun::star::drawing::ProjectionMode::PARALLEL + /** the 3D objects are drawn in the parallel projection. + */ + PARALLEL, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR ProjectionMode:: PERSPECTIVE + + // DocMerge from xml: value com::sun::star::drawing::ProjectionMode::PERSPECTIVE + /** the 3D objects are drawn in the perspective projection. + */ + PERSPECTIVE + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/RectanglePoint.idl b/offapi/com/sun/star/drawing/RectanglePoint.idl new file mode 100644 index 000000000000..db1d5ed16f6a --- /dev/null +++ b/offapi/com/sun/star/drawing/RectanglePoint.idl @@ -0,0 +1,121 @@ +/************************************************************************* + * + * 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_drawing_RectanglePoint_idl__ +#define __com_sun_star_drawing_RectanglePoint_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: enum com::sun::star::drawing::RectanglePoint +/** specifies one of nine points in a rectangle. + */ +published enum RectanglePoint +{ + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR RectanglePoint:: LEFT_TOP, + + // DocMerge from xml: value com::sun::star::drawing::RectanglePoint::LEFT_TOP + /** specify to the point on the left side from the top of the rectangle. + */ + LEFT_TOP, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR RectanglePoint:: MIDDLE_TOP, + + // DocMerge from xml: value com::sun::star::drawing::RectanglePoint::MIDDLE_TOP + /** specify to the point on the middle of the top from the rectangle. + */ + MIDDLE_TOP, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR RectanglePoint:: RIGHT_TOP, + + // DocMerge from xml: value com::sun::star::drawing::RectanglePoint::RIGHT_TOP + /** specify to the point on the right side from the top of the rectangle. + */ + RIGHT_TOP, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR RectanglePoint:: LEFT_MIDDLE, + + // DocMerge from xml: value com::sun::star::drawing::RectanglePoint::LEFT_MIDDLE + /** specify to the point on the middle of the left side from the rectangle. + */ + LEFT_MIDDLE, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR RectanglePoint:: MIDDLE_MIDDLE, + + // DocMerge from xml: value com::sun::star::drawing::RectanglePoint::MIDDLE_MIDDLE + /** specify to the point on the center from the rectangle. + */ + MIDDLE_MIDDLE, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR RectanglePoint:: RIGHT_MIDDLE, + + // DocMerge from xml: value com::sun::star::drawing::RectanglePoint::RIGHT_MIDDLE + /** specify to the point on the middle of the right side from the rectangle. + */ + RIGHT_MIDDLE, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR RectanglePoint:: LEFT_BOTTOM, + + // DocMerge from xml: value com::sun::star::drawing::RectanglePoint::LEFT_BOTTOM + /** specify to the point on the bottom of the left side from the rectangle. + */ + LEFT_BOTTOM, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR RectanglePoint:: MIDDLE_BOTTOM, + + // DocMerge from xml: value com::sun::star::drawing::RectanglePoint::MIDDLE_BOTTOM + /** specify to the point on the middle of the bottom from the rectangle. + */ + MIDDLE_BOTTOM, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR RectanglePoint:: RIGHT_BOTTOM + + // DocMerge from xml: value com::sun::star::drawing::RectanglePoint::RIGHT_BOTTOM + /** specify to the point on the bottom of the right side from the rectangle. + */ + RIGHT_BOTTOM + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/RectangleShape.idl b/offapi/com/sun/star/drawing/RectangleShape.idl new file mode 100644 index 000000000000..173df05c8c47 --- /dev/null +++ b/offapi/com/sun/star/drawing/RectangleShape.idl @@ -0,0 +1,90 @@ +/************************************************************************* + * + * 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_drawing_RectangleShape_idl__ +#define __com_sun_star_drawing_RectangleShape_idl__ + +#ifndef __com_sun_star_drawing_Shape_idl__ +#include <com/sun/star/drawing/Shape.idl> +#endif + +#ifndef __com_sun_star_drawing_FillProperties_idl__ +#include <com/sun/star/drawing/FillProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_LineProperties_idl__ +#include <com/sun/star/drawing/LineProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_Text_idl__ +#include <com/sun/star/drawing/Text.idl> +#endif + +#ifndef __com_sun_star_drawing_ShadowProperties_idl__ +#include <com/sun/star/drawing/ShadowProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_RotationDescriptor_idl__ +#include <com/sun/star/drawing/RotationDescriptor.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** This service is for a rectangle <type>Shape</type>. + */ +published service RectangleShape +{ + service com::sun::star::drawing::Shape; + + service com::sun::star::drawing::FillProperties; + + service com::sun::star::drawing::LineProperties; + + service com::sun::star::drawing::Text; + + service com::sun::star::drawing::ShadowProperties; + + service com::sun::star::drawing::RotationDescriptor; + + //------------------------------------------------------------------------- + + /** For <type>Shape</type>s with rounded corners, this is the radius + of the corners. + */ + [property] long CornerRadius; + }; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/RotationDescriptor.idl b/offapi/com/sun/star/drawing/RotationDescriptor.idl new file mode 100644 index 000000000000..dd7c1d9c38b7 --- /dev/null +++ b/offapi/com/sun/star/drawing/RotationDescriptor.idl @@ -0,0 +1,77 @@ +/************************************************************************* + * + * 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_drawing_RotationDescriptor_idl__ +#define __com_sun_star_drawing_RotationDescriptor_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** This abstract service specifies the general characteristics of an optional + rotation and shearing for a <type>Shape</type>. + + This service is depricated, instead please use the <code>Transformation</code> + property of the service <type>Shape</type>. + + @deprecated + */ +published service RotationDescriptor +{ + //------------------------------------------------------------------------- + + /** This is the angle for rotation of this <type>Shape</type>. + The shape is rotated counter-clockwise around the center + of the bounding box. + + This property contains an error, the rotation angle is mathematically + inverted when You take into account that the Y-Axis of the coordinate + system is pointing down. Please use the <code>Transformation</code> + property of the service <type>Shape</type> instead. + @deprecated + */ + [property] long RotateAngle; + + //------------------------------------------------------------------------- + + /** This is the amount of shearing for this <type>Shape</type>. + The shape is sheared counter-clockwise around the center + of the bounding box + + @deprecated + */ + [optional, property] long ShearAngle; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/ShadeMode.idl b/offapi/com/sun/star/drawing/ShadeMode.idl new file mode 100644 index 000000000000..e91154b6108c --- /dev/null +++ b/offapi/com/sun/star/drawing/ShadeMode.idl @@ -0,0 +1,80 @@ +/************************************************************************* + * + * 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_drawing_ShadeMode_idl__ +#define __com_sun_star_drawing_ShadeMode_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: enum com::sun::star::drawing::ShadeMode +/** The <type>ShadeMode</type> determines the quality of displaying the object. + */ +published enum ShadeMode +{ + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::ShadeMode::FLAT + /** With <const>FLAT</const> shading, the faces of the object are + rendered in a solid color. + */ + FLAT, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::ShadeMode::PHONG + /** With <const>PHONG</const> shading, the normal itself is interpolated + to get more realistic colors and light reflections. + */ + PHONG, + + //------------------------------------------------------------------------- + + /** With <const>SMOOTH</const> shading, the colors of the lit vertiecs is + interpolated. + */ + SMOOTH, + + //------------------------------------------------------------------------- + + // DocMerge: empty anyway + /** <const>DRAFT</const> is a special mode which uses a BSP tree and + triangle subdivision for displaying. + */ + DRAFT + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/ShadowProperties.idl b/offapi/com/sun/star/drawing/ShadowProperties.idl new file mode 100644 index 000000000000..9ecb450b0a2e --- /dev/null +++ b/offapi/com/sun/star/drawing/ShadowProperties.idl @@ -0,0 +1,86 @@ +/************************************************************************* + * + * 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_drawing_ShadowProperties_idl__ +#define __com_sun_star_drawing_ShadowProperties_idl__ + +#ifndef __com_sun_star_util_Color_idl__ +#include <com/sun/star/util/Color.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** This is a set of properties to describe the style for rendering a shadow. + */ +published service ShadowProperties +{ + //------------------------------------------------------------------------- + + /** enables/disables the shadow of a <type>Shape</type>. + <p>The other shadow properties are only applied if this is + set to <TRUE/>.</p> + */ + [property] boolean Shadow; + + //------------------------------------------------------------------------- + + /** This is the color of the shadow of this <type>Shape</type>. + */ + [property] com::sun::star::util::Color ShadowColor; + + //------------------------------------------------------------------------- + + /** This defines the degree of transparence of the shadow in percent. + */ + [property] short ShadowTransparence; + + //------------------------------------------------------------------------- + + /** This is the horizontal distance of the left edge of the + <type>Shape</type> to the shadow. + */ + [property] long ShadowXDistance; + + //------------------------------------------------------------------------- + + /** This is the vertical distance of the top edge of the + <type>Shape</type> to the shadow. + */ + [property] long ShadowYDistance; + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/Shape.idl b/offapi/com/sun/star/drawing/Shape.idl new file mode 100644 index 000000000000..3bf1c6fa15cc --- /dev/null +++ b/offapi/com/sun/star/drawing/Shape.idl @@ -0,0 +1,210 @@ +/************************************************************************* + * + * 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_drawing_Shape_idl__ +#define __com_sun_star_drawing_Shape_idl__ + +#ifndef __com_sun_star_document_LinkTarget_idl__ +#include <com/sun/star/document/LinkTarget.idl> +#endif + +#ifndef __com_sun_star_drawing_XShape_idl__ +#include <com/sun/star/drawing/XShape.idl> +#endif + +#ifndef __com_sun_star_lang_XComponent_idl__ +#include <com/sun/star/lang/XComponent.idl> +#endif + +#ifndef __com_sun_star_style_XStyle_idl__ +#include <com/sun/star/style/XStyle.idl> +#endif + +#ifndef __com_sun_star_drawing_HomogenMatrix3_idl__ +#include <com/sun/star/drawing/HomogenMatrix3.idl> +#endif + +#ifndef __com_sun_star_drawing_XGluePointsSupplier_idl__ +#include <com/sun/star/drawing/XGluePointsSupplier.idl> +#endif + +#ifndef __com_sun_star_container_XNameContainer_idl__ +#include <com/sun/star/container/XNameContainer.idl> +#endif + +#ifndef __com_sun_star_beans_XTolerantMultiPropertySet_idl__ +#include <com/sun/star/beans/XTolerantMultiPropertySet.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** This abstract service specifies the general characteristics of all + <type>Shape</type>s. + + @see XShape + @see com::sun::star::lang::XComponent + @see com::sun::star::text::XText + @see ShapeDescriptor + */ +published service Shape +{ + //------------------------------------------------------------------------- + + /** handles all the properties of this instance. + */ + interface com::sun::star::beans::XPropertySet; + + //------------------------------------------------------------------------- + + /** This gives you the size and position of this <type>Shape</type> + and lets you change it. You can use <member>getShapeType</member> + to determine what kind of shape this is. + */ + interface com::sun::star::drawing::XShape; + + //------------------------------------------------------------------------- + + /** is used for lifetime control of this <type>Shape</type>. + */ + interface com::sun::star::lang::XComponent; + + //------------------------------------------------------------------------- + + /** The <type>XShapeDescriptor</type> tells you what kind of + <type>Shape</type> this instance is. + */ + interface com::sun::star::drawing::XShapeDescriptor; + + //------------------------------------------------------------------------- + + /** This interfaces gives access to an optional container of glue points. + To have unique ids you should query the returned interface for + <type scope="com::sun::star::container">XIdentifierContainer</type>. + */ + [optional] interface com::sun::star::drawing::XGluePointsSupplier; + + //------------------------------------------------------------------------- + + [optional] interface com::sun::star::beans::XTolerantMultiPropertySet; + + //------------------------------------------------------------------------- + + /** is used to query or change the ZOrder of this <type>Shape</type>. */ + [optional, property] long ZOrder; + + //------------------------------------------------------------------------- + + /** This is the ID of the <type>Layer</type> to which this + <type>Shape</type> is attached. + */ + [optional, property] short LayerID; + + //------------------------------------------------------------------------- + + /** This is the name of the <type>Layer</type> to which this + <type>Shape</type> is attached. + */ + [optional, property] string LayerName; + + //------------------------------------------------------------------------- + + /** If this is <FALSE/>, the <type>Shape</type> is not visible + on screen outputs. Please note that the <type>Shape</type> may still + be visible when printed, see <member>Printable</member>. + */ + [optional, property] boolean Visible; + + //------------------------------------------------------------------------- + + /** If this is <FALSE/>, the <type>Shape</type> is not visible + on printer outputs. + */ + [optional, property] boolean Printable; + + //------------------------------------------------------------------------- + + /** With this set to <TRUE/>, this <type>Shape</type> + cannot be moved interactively in the user interface. + */ + [optional, property] boolean MoveProtect; + + //------------------------------------------------------------------------- + + /** This is the name of this <type>Shape</type>. + */ + [optional, property] string Name; + + //------------------------------------------------------------------------- + + /** With this set to <TRUE/>, this <type>Shape</type> may not be + sized interactively in the user interface. + */ + [optional, property] boolean SizeProtect; + + //------------------------------------------------------------------------- + + /** this property lets you get and set a style for this shape. + */ + [optional, property] com::sun::star::style::XStyle Style; + + //------------------------------------------------------------------------- + + /** this property lets you get and set the transformation matrix + for this shape. + + The transformation is a 3x3 homogen matrix and can contain + translation, rotation, shearing and scaling. + */ + [optional, property] com::sun::star::drawing::HomogenMatrix3 Transformation; + + //------------------------------------------------------------------------- + + /** this property stores xml attributes. + They will be saved to and restored from automatic styles inside xml files. + + @see com::sun::star::xml::AttributeContainer + */ + [optional, property] com::sun::star::container::XNameContainer ShapeUserDefinedAttributes; + + //------------------------------------------------------------------------- + + /** this property stores the navigation order of this shape. If this value + is negative, the navigation order for this shapes page is equal to + the z-order. + */ + [optional, property] long NavigationOrder; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/ShapeCollection.idl b/offapi/com/sun/star/drawing/ShapeCollection.idl new file mode 100644 index 000000000000..df633e334cb2 --- /dev/null +++ b/offapi/com/sun/star/drawing/ShapeCollection.idl @@ -0,0 +1,67 @@ +/************************************************************************* + * + * 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_drawing_ShapeCollection_idl__ +#define __com_sun_star_drawing_ShapeCollection_idl__ + +#ifndef __com_sun_star_drawing_Shapes_idl__ +#include <com/sun/star/drawing/Shapes.idl> +#endif + +#ifndef __com_sun_star_lang_XComponent_idl__ +#include <com/sun/star/lang/XComponent.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module drawing { + +//============================================================================= +/** This service describes a generic container to manage collections of + <type>Shape</type>. The <type>Shape</type> that are added to this + collection are not owned by the collection. + + This service is used by the view f.e. to return a collection of + <type>Shape</type> that are selected at the ui. +*/ +published service ShapeCollection +{ + /** gives access to the shapes + */ + interface com::sun::star::drawing::XShapes; + + /** allows controlling or observing the lifetime of this collection + */ + interface com::sun::star::lang::XComponent; + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/Shapes.idl b/offapi/com/sun/star/drawing/Shapes.idl new file mode 100644 index 000000000000..e6c1663df2e0 --- /dev/null +++ b/offapi/com/sun/star/drawing/Shapes.idl @@ -0,0 +1,56 @@ +/************************************************************************* + * + * 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_drawing_Shapes_idl__ +#define __com_sun_star_drawing_Shapes_idl__ + +#ifndef __com_sun_star_drawing_XShapes_idl__ +#include <com/sun/star/drawing/XShapes.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: service com::sun::star::drawing::Shapes +/** This service is for a generic collection of shapes. + */ +published service Shapes +{ + // DocMerge: empty anyway + interface com::sun::star::drawing::XShapes; + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/SlideRenderer.idl b/offapi/com/sun/star/drawing/SlideRenderer.idl new file mode 100644 index 000000000000..7607829ed338 --- /dev/null +++ b/offapi/com/sun/star/drawing/SlideRenderer.idl @@ -0,0 +1,48 @@ +/************************************************************************* + * + * 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_drawing_SlideRenderer_idl__ +#define __com_sun_star_drawing_SlideRenderer_idl__ + +#ifndef __com_sun_star_drawing_XSlideRenderer_idl__ +#include <com/sun/star/drawing/XSlideRenderer.idl> +#endif + +module com { module sun { module star { module drawing { + +/** Create preview bitmaps for single slides. +*/ +service SlideRenderer : XSlideRenderer +{ + /** Create a new SlideRenderer object. + */ + create (); +}; + +}; }; }; }; // ::com::sun::star::drawing + +#endif diff --git a/offapi/com/sun/star/drawing/SlideSorter.idl b/offapi/com/sun/star/drawing/SlideSorter.idl new file mode 100644 index 000000000000..b5af6a596a04 --- /dev/null +++ b/offapi/com/sun/star/drawing/SlideSorter.idl @@ -0,0 +1,160 @@ +/************************************************************************* + * + * 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_drawing_SlideSorter_idl__ +#define __com_sun_star_drawing_SlideSorter_idl__ + +#ifndef __com_sun_star_drawing_framework_XView_idl__ +#include <com/sun/star/drawing/framework/XView.idl> +#endif +#ifndef __com_sun_star_drawing_XDrawView_idl__ +#include <com/sun/star/drawing/XDrawView.idl> +#endif +#ifndef __com_sun_star_awt_XWindow_idl__ +#include <com/sun/star/awt/XWindow.idl> +#endif +#ifndef __com_sun_star_container_XIndexAccess_idl__ +#include <com/sun/star/container/XIndexAccess.idl> +#endif +#ifndef __com_sun_star_frame_XController_idl__ +#include <com/sun/star/frame/XController.idl> +#endif +#ifndef __com_sun_star_util_Color_idl__ +#include <com/sun/star/util/Color.idl> +#endif + +module com { module sun { module star { module drawing { + +/** This interface exists only because services do not directly support + multiple inheritance and attributes. + <p>It provides the interfaces and attributes that every object that + implements the <type>SlideSorter</type> service.</p> +*/ +interface XSlideSorterBase +{ + /** This interface is included to mark a <type>SlideSorter</type> object + as view of the drawing framework and to provide a + <type>ResourceId</type>. + */ + interface ::com::sun::star::drawing::framework::XView; + + /** The <type>XDrawView</type> interface is included to provide access + to the current slide (especially write access). + */ + interface ::com::sun::star::drawing::XDrawView; + + /** The set of slides that are displayed by the implementing object. + <p>The default value is the set of all slides of the document for + which a slide sorter is created.</p> + */ + [attribute] ::com::sun::star::container::XIndexAccess DocumentSlides; + + /** Set this flag to <TRUE/> in order to have the current slide + highlighted. + <p>The default value is <FALSE/>.</p> + */ + [attribute] boolean IsHighlightCurrentSlide; + + /** Set this flag to <TRUE/> in order to visualize the selection of + slides (typically a bold frame around the selected slides). + <p>The default value is <TRUE/>.</p> + */ + [attribute] boolean IsShowSelection; + + /** Set this flag to <TRUE/> to visualize to where the focus is by + showing a dotted rectangle around the focused slide. + <p>The default value is <TRUE/>.</p> + */ + [attribute] boolean IsShowFocus; + + /** When this flag has the value <TRUE/> then every time the current + slide is changed the visual area is shifted so that the new current + slide is display in the center of the slide sorter window. + <p>It is not always possible to move the current slide into the + exact center of the window, for example when slides are located near + the start or end of a document.</p> + <p>The default value is <FALSE/>. + */ + [attribute] boolean IsCenterSelection; + + /** This flag controls whether updates of previews are created during + full screen presentations (<FALSE/>) or not (<TRUE/>). The + suspension of preview creations is an optimization for not slowing + down a running presentation. + <p>The default value is <TRUE/>.</p> + */ + [attribute] boolean IsSuspendPreviewUpdatesDuringFullScreenPresentation; + + /** The orientation of a slide sorter can be either vertical (<TRUE/>) + or horizontal (<FALSE/>). + */ + [attribute] boolean IsOrientationVertical; + + /** This flag is a hint to make scrolling look smooth. + */ + [attribute] boolean IsSmoothScrolling; + + [attribute] ::com::sun::star::util::Color BackgroundColor; + [attribute] ::com::sun::star::util::Color TextColor; + [attribute] ::com::sun::star::util::Color SelectionColor; + [attribute] ::com::sun::star::util::Color HighlightColor; + + /** This flag controls whether the model can be modified by using + keyboard or mouse. + <p>The default value is <TRUE/>.</p> + */ + [attribute] boolean IsUIReadOnly; +}; + + + + +/** A slide sorter shows previews for a set of slides, typically all slides + in a document, and allows the selection, reordering, creation, and + deletion of slides. + <p>In the drawing framework a slide sorter is regarded as a view.</p> +*/ +service SlideSorter : XSlideSorterBase +{ + /** Create a new slide sorter object. + @param xViewId + The resource id of the new slide sorter. + @param xController + The access point to an impress document. + @param xParentWindow + The parent window which will be completely covered by the new + slide sorter. + */ + create ( + [in] framework::XResourceId xViewId, + [in] ::com::sun::star::frame::XController xController, + [in] ::com::sun::star::awt::XWindow xParentWindow); +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/drawing/SnapObjectType.idl b/offapi/com/sun/star/drawing/SnapObjectType.idl new file mode 100644 index 000000000000..cb9b984d92d9 --- /dev/null +++ b/offapi/com/sun/star/drawing/SnapObjectType.idl @@ -0,0 +1,67 @@ +/************************************************************************* + * + * 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_drawing_SnapObjectType_idl__ +#define __com_sun_star_drawing_SnapObjectType_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: enum com::sun::star::drawing::SnapObjectType +/** @deprecated + */ +published enum SnapObjectType +{ + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR SnapObjectType:: POINT, + + // DocMerge: empty anyway + POINT, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR SnapObjectType:: VERTICAL, + + // DocMerge: empty anyway + VERTICAL, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR SnapObjectType:: HORIZONTAL + + // DocMerge: empty anyway + HORIZONTAL + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/Text.idl b/offapi/com/sun/star/drawing/Text.idl new file mode 100644 index 000000000000..cb9b0c182afd --- /dev/null +++ b/offapi/com/sun/star/drawing/Text.idl @@ -0,0 +1,65 @@ +/************************************************************************* + * + * 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_drawing_Text_idl__ +#define __com_sun_star_drawing_Text_idl__ + +#ifndef __com_sun_star_text_XText_idl__ +#include <com/sun/star/text/XText.idl> +#endif + +#ifndef __com_sun_star_drawing_TextProperties_idl__ +#include <com/sun/star/drawing/TextProperties.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** This abstract service specifies the general characteristics of an optional + text inside a <type>Shape</type>. + */ +published service Text +{ + /** With this interface you can modify the text of this + <type>Shape<type>. + */ + interface com::sun::star::text::XText; + + /** The properties in this service describe the style for rendering + a shapes text area. + */ + service com::sun::star::drawing::TextProperties; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/TextAdjust.idl b/offapi/com/sun/star/drawing/TextAdjust.idl new file mode 100644 index 000000000000..9b0e63572503 --- /dev/null +++ b/offapi/com/sun/star/drawing/TextAdjust.idl @@ -0,0 +1,90 @@ +/************************************************************************* + * + * 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_drawing_TextAdjust_idl__ +#define __com_sun_star_drawing_TextAdjust_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: enum com::sun::star::drawing::TextAdjust +/** This enumeration specifies the position of a text inside a shape in + relation to the shape. + + @deprecated + + <p>This counts for the complete text, not individual lines. </p> + */ +published enum TextAdjust +{ + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::TextAdjust::LEFT + /** The left edge of the text is adjusted to the left edge of the shape. + */ + LEFT, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::TextAdjust::CENTER + /** The text is centered inside the shape. + */ + CENTER, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::TextAdjust::RIGHT + /** The right edge of the text is adjusted to the right edge of the shape. + */ + RIGHT, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::TextAdjust::BLOCK + /** The text extends from the left to the right edge of the shape. + */ + BLOCK, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::TextAdjust::STRETCH + /** The text is stretched so that the longest line goes from the left + to the right edge of the shape. + */ + STRETCH + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/TextAnimationDirection.idl b/offapi/com/sun/star/drawing/TextAnimationDirection.idl new file mode 100644 index 000000000000..a0d172f2fd99 --- /dev/null +++ b/offapi/com/sun/star/drawing/TextAnimationDirection.idl @@ -0,0 +1,73 @@ +/************************************************************************* + * + * 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_drawing_TextAnimationDirection_idl__ +#define __com_sun_star_drawing_TextAnimationDirection_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: enum com::sun::star::drawing::TextAnimationDirection +/** This enumeration defines the movement direction of a scrolltext. + */ +published enum TextAnimationDirection +{ + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR TextAnimationDirection:: LEFT, + + // DocMerge: empty anyway + LEFT, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR TextAnimationDirection:: RIGHT, + + // DocMerge: empty anyway + RIGHT, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR TextAnimationDirection:: UP, + + // DocMerge: empty anyway + UP, + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR TextAnimationDirection:: DOWN + + // DocMerge: empty anyway + DOWN + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/TextAnimationKind.idl b/offapi/com/sun/star/drawing/TextAnimationKind.idl new file mode 100644 index 000000000000..fa2a12f2e596 --- /dev/null +++ b/offapi/com/sun/star/drawing/TextAnimationKind.idl @@ -0,0 +1,84 @@ +/************************************************************************* + * + * 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_drawing_TextAnimationKind_idl__ +#define __com_sun_star_drawing_TextAnimationKind_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: enum com::sun::star::drawing::TextAnimationKind +/** This enumeration specifies the type of animation for a text. + */ +published enum TextAnimationKind +{ + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::TextAnimationKind::NONE + /** Don't animate this text. + */ + NONE, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::TextAnimationKind::BLINK + /** Let this text switch its state from visibile to nonvisible continuously. + */ + BLINK, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::TextAnimationKind::SCROLL + /** Let this text scroll. + */ + SCROLL, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::TextAnimationKind::ALTERNATE + /** Scroll the text from one side to the other and back. + */ + ALTERNATE, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::TextAnimationKind::SLIDE + /** Scroll the text from one side to the final position and stop there. + */ + SLIDE + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/TextFitToSizeType.idl b/offapi/com/sun/star/drawing/TextFitToSizeType.idl new file mode 100644 index 000000000000..39b92eeb9bbb --- /dev/null +++ b/offapi/com/sun/star/drawing/TextFitToSizeType.idl @@ -0,0 +1,74 @@ +/************************************************************************* + * + * 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_drawing_TextFitToSizeType_idl__ +#define __com_sun_star_drawing_TextFitToSizeType_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: enum com::sun::star::drawing::TextFitToSizeType +/** This enumeration specifies how the text within a shape relates to the + size of the shape. + */ +published enum TextFitToSizeType +{ + //------------------------------------------------------------------------- + /** the text size is only defined by the font properties + */ + NONE, + + //------------------------------------------------------------------------- + + /** if the shape is scaled, the text character size is scaled proportional + */ + PROPORTIONAL, + + //------------------------------------------------------------------------- + + /** like <code>PROPORTIONAL</code>, but the width of each text row is + also scaled proportional. + */ + ALLLINES, + + //------------------------------------------------------------------------- + + /** if the shape is scaled, the font attributes are scaled and hard set + on the text */ + RESIZEATTR + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/TextHorizontalAdjust.idl b/offapi/com/sun/star/drawing/TextHorizontalAdjust.idl new file mode 100644 index 000000000000..bab5f3313ef8 --- /dev/null +++ b/offapi/com/sun/star/drawing/TextHorizontalAdjust.idl @@ -0,0 +1,73 @@ +/************************************************************************* + * + * 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_drawing_TextHorizontalAdjust_idl__ +#define __com_sun_star_drawing_TextHorizontalAdjust_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** This enumeration specifies the horizontal position of text inside a shape in + relation to the shape. + <p>This counts for the complete text, not individual lines. </p> + */ +published enum TextHorizontalAdjust +{ + //------------------------------------------------------------------------- + + /** The left edge of the text is adjusted to the left edge of the shape. + */ + LEFT, + + //------------------------------------------------------------------------- + + /** The text is centered inside the shape. + */ + CENTER, + + //------------------------------------------------------------------------- + + /** The right edge of the text is adjusted to the right edge of the shape. + */ + RIGHT, + + //------------------------------------------------------------------------- + + /** The text extends from the left to the right edge of the shape. + */ + BLOCK +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/TextProperties.idl b/offapi/com/sun/star/drawing/TextProperties.idl new file mode 100644 index 000000000000..aaf7dc5e4be7 --- /dev/null +++ b/offapi/com/sun/star/drawing/TextProperties.idl @@ -0,0 +1,334 @@ +/************************************************************************* + * + * 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_drawing_TextProperties_idl__ +#define __com_sun_star_drawing_TextProperties_idl__ + +#ifndef __com_sun_star_container_XIndexReplace_idl__ +#include <com/sun/star/container/XIndexReplace.idl> +#endif + +#ifndef __com_sun_star_style_CharacterProperties_idl__ +#include <com/sun/star/style/CharacterProperties.idl> +#endif + +#ifndef __com_sun_star_style_CharacterPropertiesAsian_idl__ +#include <com/sun/star/style/CharacterPropertiesAsian.idl> +#endif + +#ifndef __com_sun_star_style_CharacterPropertiesComplex_idl__ +#include <com/sun/star/style/CharacterPropertiesComplex.idl> +#endif + +#ifndef __com_sun_star_style_ParagraphProperties_idl__ +#include <com/sun/star/style/ParagraphProperties.idl> +#endif + +#ifndef __com_sun_star_style_ParagraphPropertiesAsian_idl__ +#include <com/sun/star/style/ParagraphPropertiesAsian.idl> +#endif + +#ifndef __com_sun_star_style_ParagraphPropertiesComplex_idl__ +#include <com/sun/star/style/ParagraphPropertiesComplex.idl> +#endif + +#ifndef __com_sun_star_drawing_TextFitToSizeType_idl__ +#include <com/sun/star/drawing/TextFitToSizeType.idl> +#endif + +#ifndef __com_sun_star_drawing_TextAdjust_idl__ +#include <com/sun/star/drawing/TextAdjust.idl> +#endif + +#ifndef __com_sun_star_drawing_TextAnimationDirection_idl__ +#include <com/sun/star/drawing/TextAnimationDirection.idl> +#endif + +#ifndef __com_sun_star_drawing_TextAnimationKind_idl__ +#include <com/sun/star/drawing/TextAnimationKind.idl> +#endif + +#ifndef __com_sun_star_drawing_TextVerticalAdjust_idl__ +#include <com/sun/star/drawing/TextVerticalAdjust.idl> +#endif + +#ifndef __com_sun_star_drawing_TextHorizontalAdjust_idl__ +#include <com/sun/star/drawing/TextHorizontalAdjust.idl> +#endif + +#ifndef __com_sun_star_text_WritingMode_idl__ +#include <com/sun/star/text/WritingMode.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + + +/** This is a set of properties to describe the style for rendering the + text area inside a shape. + */ +published service TextProperties +{ + /** The properties in this service set default formats for text + inside the <type>Shape</type>. + */ + service com::sun::star::style::CharacterProperties; + + //------------------------------------------------------------------------- + + /** The properties in this service set default formats for asian text + inside the <type>Shape</type>. + */ + [optional] service com::sun::star::style::CharacterPropertiesAsian; + + //------------------------------------------------------------------------- + + /** The properties in this service set default formats for complex text + inside the <type>Shape</type>. + */ + [optional] service com::sun::star::style::CharacterPropertiesComplex; + + //------------------------------------------------------------------------- + + /** The properties in this service set default formats for text + inside the <type>Shape</type>. + */ + service com::sun::star::style::ParagraphProperties; + + //------------------------------------------------------------------------- + + /** The properties in this service set default formats for asian text + inside the <type>Shape</type>. + */ + [optional] service com::sun::star::style::ParagraphPropertiesAsian; + + //------------------------------------------------------------------------- + + /** The properties in this service set default formats for complex text + inside the <type>Shape</type>. + */ + [optional] service com::sun::star::style::ParagraphPropertiesComplex; + //------------------------------------------------------------------------- + + /** If this is <TRUE/>, numbering is ON for the text of + this <type>Shape</type>. + */ + [optional, property] boolean IsNumbering; + + //------------------------------------------------------------------------- + + /** describes the numbering levels. + <p>The different rules accessible with this + <type scope="com::sun::star::container">XIndexReplace</type> interface + are sequences of property values as described in the service + <type scope="com::sun::star::style">NumberingRule</type>.</p> + */ + [optional, property] com::sun::star::container::XIndexReplace NumberingRules; + + //------------------------------------------------------------------------- + + /** If this value is <TRUE/>, the height of the <type>Shape</type> is + automatically expanded/shrunk when text is added to or removed from + the <type>Shape</type>. + */ + [property] boolean TextAutoGrowHeight; + + //------------------------------------------------------------------------- + + /** If this value is <TRUE/>, the width of the <type>Shape</type> is + automatically expanded/shrunk when text is added to or removed from + the <type>Shape</type>. + */ + [property] boolean TextAutoGrowWidth; + + //------------------------------------------------------------------------- + + // DocMerge from xml: property com::sun::star::drawing::Text::TextContourFrame + /** If this value is <TRUE/>, the left edge of every line of text is + aligned with the left edge of this <type>Shape</type>. + */ + [property] boolean TextContourFrame; + + //------------------------------------------------------------------------- + + /** With this set to <TRUE/>, the text inside of the <type>Shape</type> + is stretched to fit into the <type>Shape</type>. + */ + [property] com::sun::star::drawing::TextFitToSizeType TextFitToSize; + + //------------------------------------------------------------------------- + + /** adjusts the horizontal position of the text inside of + the <type>Shape</type>. + */ + [property] com::sun::star::drawing::TextHorizontalAdjust TextHorizontalAdjust; + + //------------------------------------------------------------------------- + + /** adjusts the vertical position of the text inside of + the <type>Shape</type>. + */ + [property] com::sun::star::drawing::TextVerticalAdjust TextVerticalAdjust; + + //------------------------------------------------------------------------- + + /** This is the distance from the left edge of the <type>Shape</type> + to the left edge of the text. + <p>This is only useful if <member>Text::TextHorizontalAdjust</member> is + <const>BLOCK</const> or <const>STRETCH</const> or if + <member>Text::TextFitSize</member> is <TRUE/>.</p> + */ + [property] long TextLeftDistance; + + //------------------------------------------------------------------------- + + /** This is the distance from the right edge of the <type>Shape</type> + to the right edge of the text. + + <p>This is only useful if <member>Text::TextHorizontalAdjust</member> is + <const>BLOCK</const> or <const>STRETCH</const> + or if <member>Text::TextFitSize</member> is <TRUE/>.</p> + */ + [property] long TextRightDistance; + + //------------------------------------------------------------------------- + + /** This is the distance from the upper edge of the <type>Shape</type> to + the upper edge of the text. + + <p>This is only useful if <member>Text::TextVerticalAdjust</member> is + <const>BLOCK</const> or if <member>Text::TextFitSize</member> is + <TRUE/>.</p> + */ + [property] long TextUpperDistance; + + //------------------------------------------------------------------------- + + /** This is the distance from the lower edge of the <type>Shape</type> to the + lower edge of the text. + + + + <p>This is only useful if <member>Text::TextVerticalAdjust</member> is + <const>BLOCK</const> or if <member>Text::TextFitSize</member> is + <TRUE/>.</p> + */ + [property] long TextLowerDistance; + + //------------------------------------------------------------------------- + + /** with this property you can set the maximum height for a shape with text. + On edit, the auto grow feature will not grow the object heigher than + the value of this property. + */ + [property] long TextMaximumFrameHeight; + + //------------------------------------------------------------------------- + + /** with this property you can set the maximum width for a shape with text. + On edit, the auto grow feature will not grow the objects wider than + the value of this property. + */ + [property] long TextMaximumFrameWidth; + + //------------------------------------------------------------------------- + + /** with this property you can set the minimum height for a shape with text. + On edit, the auto grow feature will not shrink the objects height smaller + than the value of this property. + */ + [property] long TextMinimumFrameHeight; + + //------------------------------------------------------------------------- + + /** with this property you can set the minimum width for a shape with text. + On edit, the auto grow feature will not shrink the object width smaller + than the value of this property. + */ + [property] long TextMinimumFrameWidth; + + //------------------------------------------------------------------------- + + /** This is the number of pixels the text is moved in each animation step. + */ + [property] short TextAnimationAmount; + + //------------------------------------------------------------------------- + + /** This number defines how many times the text animation is repeated. + <p>If this is set to zero, the repeat is endless.</p> + */ + [property] short TextAnimationCount; + + //------------------------------------------------------------------------- + + /** This is the delay in thousandths of a second between each + of the animation steps. + */ + [property] short TextAnimationDelay; + + //------------------------------------------------------------------------- + + /** This enumeration defines the direction in which the text moves. + */ + [property] com::sun::star::drawing::TextAnimationDirection TextAnimationDirection; + + //------------------------------------------------------------------------- + + /** This value defines the type of animation. + */ + [property] com::sun::star::drawing::TextAnimationKind TextAnimationKind; + + //------------------------------------------------------------------------- + + /** If this value is <TRUE/>, the text is visible at the start of the + animation. + */ + [property] boolean TextAnimationStartInside; + + //------------------------------------------------------------------------- + + /** If this value is <TRUE/>, the text is visible at the end of the + animation. + */ + [property] boolean TextAnimationStopInside; + + //------------------------------------------------------------------------- + + /** This value selects the writing mode for the text. + */ + [property] ::com::sun::star::text::WritingMode TextWritingMode; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/TextShape.idl b/offapi/com/sun/star/drawing/TextShape.idl new file mode 100644 index 000000000000..e1b8d23fbd1d --- /dev/null +++ b/offapi/com/sun/star/drawing/TextShape.idl @@ -0,0 +1,87 @@ +/************************************************************************* + * + * 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_drawing_TextShape_idl__ +#define __com_sun_star_drawing_TextShape_idl__ + +#ifndef __com_sun_star_drawing_Shape_idl__ +#include <com/sun/star/drawing/Shape.idl> +#endif + +#ifndef __com_sun_star_drawing_Text_idl__ +#include <com/sun/star/drawing/Text.idl> +#endif + +#ifndef __com_sun_star_drawing_FillProperties_idl__ +#include <com/sun/star/drawing/FillProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_LineProperties_idl__ +#include <com/sun/star/drawing/LineProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_ShadowProperties_idl__ +#include <com/sun/star/drawing/ShadowProperties.idl> +#endif + +#ifndef __com_sun_star_drawing_RotationDescriptor_idl__ +#include <com/sun/star/drawing/RotationDescriptor.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** This service is for a text shape. + */ +published service TextShape +{ + service com::sun::star::drawing::Shape; + + service com::sun::star::drawing::FillProperties; + + service com::sun::star::drawing::LineProperties; + + service com::sun::star::drawing::ShadowProperties; + + service com::sun::star::drawing::Text; + + service com::sun::star::drawing::RotationDescriptor; + + /** This is the radius of the corners. + */ + [property] long CornerRadius; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/TextVerticalAdjust.idl b/offapi/com/sun/star/drawing/TextVerticalAdjust.idl new file mode 100644 index 000000000000..ea22b4430324 --- /dev/null +++ b/offapi/com/sun/star/drawing/TextVerticalAdjust.idl @@ -0,0 +1,76 @@ +/************************************************************************* + * + * 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_drawing_TextVerticalAdjust_idl__ +#define __com_sun_star_drawing_TextVerticalAdjust_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** This enumeration specifies the vertical position of text inside a shape in + relation to the shape. + <p>This counts for the complete text, not individual lines. </p> + */ +published enum TextVerticalAdjust +{ + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::TextAdjust::LEFT + /** The top edge of the text is adjusted to the top edge of the shape. + */ + TOP, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::TextAdjust::CENTER + /** The text is centered inside the shape. + */ + CENTER, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::TextAdjust::RIGHT + /** The bottom edge of the text is adjusted to the bottom edge of the shape. + */ + BOTTOM, + + //------------------------------------------------------------------------- + + /** The text extends from the top to the bottom edge of the shape. + */ + BLOCK + }; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/TextureKind.idl b/offapi/com/sun/star/drawing/TextureKind.idl new file mode 100644 index 000000000000..963ba7e580ae --- /dev/null +++ b/offapi/com/sun/star/drawing/TextureKind.idl @@ -0,0 +1,67 @@ +/************************************************************************* + * + * 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_drawing_TextureKind_idl__ +#define __com_sun_star_drawing_TextureKind_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: enum com::sun::star::drawing::TextureKind +/** These enumeration values specify how the texture is applied. + @deprecated + */ +published enum TextureKind +{ + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::TextureKind::LUMINANCE + /** With <type>TextureKind</type> <const>LUMINANCE</const>, the texture + and the lighting information are mixed to produce the image, so a + lit, textured object is achieved. + */ + LUMINANCE, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::TextureKind::COLOR + /** With this mode the lighting is ignored and only the + texture color information is used. + */ + COLOR + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/TextureKind2.idl b/offapi/com/sun/star/drawing/TextureKind2.idl new file mode 100644 index 000000000000..f419f95e2b13 --- /dev/null +++ b/offapi/com/sun/star/drawing/TextureKind2.idl @@ -0,0 +1,66 @@ +/************************************************************************* + * + * 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_drawing_TextureKind2_idl__ +#define __com_sun_star_drawing_TextureKind2_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** These enumeration values specify how the texture is applied. + */ +published enum TextureKind2 +{ + //------------------------------------------------------------------------- + + /** With <type>TextureKind</type> <const>LUMINANCE</const>, the texture + and the lighting information are mixed to produce the image, so a + lit, textured object is achieved. + */ + LUMINANCE, + + /** With <type>TextureKind</type> <const>INTENSITY</const>, each texture + pixel is used as an intensity value. + */ + INTENSITY, + //------------------------------------------------------------------------- + + /** With this mode, the lighting is ignored and only the + texture color information is used. + */ + COLOR +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/TextureMode.idl b/offapi/com/sun/star/drawing/TextureMode.idl new file mode 100644 index 000000000000..def9d015af28 --- /dev/null +++ b/offapi/com/sun/star/drawing/TextureMode.idl @@ -0,0 +1,71 @@ +/************************************************************************* + * + * 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_drawing_TextureMode_idl__ +#define __com_sun_star_drawing_TextureMode_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: enum com::sun::star::drawing::TextureMode +/** The <type>TextureMode</type> defines in which way the texture color data + replaces the object color data. + */ +published enum TextureMode +{ + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::TextureMode::REPLACE + /** This is the standard mode. + */ + REPLACE, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::TextureMode::MODULATE + /** This mixes up colors in a way defined by the texture bitmap. + */ + MODULATE, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::TextureMode::BLEND + /** This mixes both data sources in a fixed ratio. + */ + BLEND + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/TextureProjectionMode.idl b/offapi/com/sun/star/drawing/TextureProjectionMode.idl new file mode 100644 index 000000000000..aaede2a89872 --- /dev/null +++ b/offapi/com/sun/star/drawing/TextureProjectionMode.idl @@ -0,0 +1,76 @@ +/************************************************************************* + * + * 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_drawing_TextureProjectionMode_idl__ +#define __com_sun_star_drawing_TextureProjectionMode_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: enum com::sun::star::drawing::TextureProjectionMode +/** defines how the texture is mapped to the object. + + + + <p>It can be set independently for X and Y texture directions.</p> + */ +published enum TextureProjectionMode +{ + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::TextureProjectionMode::OBJECTSPECIFIC + /** This value specifies that the standard object projection method is + used. + */ + OBJECTSPECIFIC, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::TextureProjectionMode::PARALLEL + /** This value specifies a flat parallel projection in the specified + degree of freedom (X or Y). + */ + PARALLEL, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::TextureProjectionMode::SPHERE + /** This value forces projection to wrapping in X and/or Y. + */ + SPHERE + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/TransparencyGradientTable.idl b/offapi/com/sun/star/drawing/TransparencyGradientTable.idl new file mode 100644 index 000000000000..1e91a5b40cd7 --- /dev/null +++ b/offapi/com/sun/star/drawing/TransparencyGradientTable.idl @@ -0,0 +1,64 @@ +/************************************************************************* + * + * 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_drawing_TransparencyGradientTable_idl__ +#define __com_sun_star_drawing_TransparencyGradientTable_idl__ + +#ifndef __com_sun_star_container_XNameContainer_idl__ +#include <com/sun/star/container/XNameContainer.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** this is a container for <type scope="com::sun::star::awt">Gradient</type>s + + <p>It is used for example to access the <type scope="com::sun::star::awt">Gradient</type>s that + are used inside a document for fill transparency. + + @see DrawingDocumentFactory + @see com::sun::star::awt::Gradient +*/ +published service TransparencyGradientTable +{ + /** this container lets you access the <typeu scope="com::sun::star::awt">Gradient</type>s that + are indexed with a name. + + <p>Note: You can add new entries for later use, but you cannot + remove entries that are used inside the document. + */ + interface com::sun::star::container::XNameContainer; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/VerticalDimensioning.idl b/offapi/com/sun/star/drawing/VerticalDimensioning.idl new file mode 100644 index 000000000000..d6e43834a5ee --- /dev/null +++ b/offapi/com/sun/star/drawing/VerticalDimensioning.idl @@ -0,0 +1,79 @@ +/************************************************************************* + * + * 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_drawing_VerticalDimensioning_idl__ +#define __com_sun_star_drawing_VerticalDimensioning_idl__ + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: enum com::sun::star::drawing::VerticalDimensioning +/** specifies the vertical position of + the text of a dimensioning shape. + */ +published enum VerticalDimensioning +{ + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::VerticalDimensioning::AUTO + /** Set this to have the application select the best horizontal + position for the text. + */ + AUTO, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::VerticalDimensioning::TOP + /** The text is positioned above the main line. + */ + TOP, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::VerticalDimensioning::CENTERED + /** The text is positioned over the main line. + */ + CENTERED, + + //------------------------------------------------------------------------- + + // DocMerge from xml: value com::sun::star::drawing::VerticalDimensioning::BOTTOM + /** The text is positioned below the main line. + */ + BOTTOM + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/XConnectableShape.idl b/offapi/com/sun/star/drawing/XConnectableShape.idl new file mode 100644 index 000000000000..12132d75c7fa --- /dev/null +++ b/offapi/com/sun/star/drawing/XConnectableShape.idl @@ -0,0 +1,72 @@ +/************************************************************************* + * + * 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_drawing_XConnectableShape_idl__ +#define __com_sun_star_drawing_XConnectableShape_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_Point_idl__ +#include <com/sun/star/awt/Point.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** @deprecated +*/ +published interface XConnectableShape: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR XConnectableShape::canConnect + + // DocMerge: empty anyway + boolean canConnect( [in] com::sun::star::awt::Point nPos, + [in] boolean bCreateGluePoint, + [in] long nMaxDist ); + + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR XConnectableShape::doConnect + + // DocMerge: empty anyway + boolean doConnect( [in] com::sun::star::awt::Point nPos, + [in] boolean bCreateGluePoint, + [in] long nMaxDist ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/XConnectorShape.idl b/offapi/com/sun/star/drawing/XConnectorShape.idl new file mode 100644 index 000000000000..2cc777ebc2f4 --- /dev/null +++ b/offapi/com/sun/star/drawing/XConnectorShape.idl @@ -0,0 +1,92 @@ +/************************************************************************* + * + * 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_drawing_XConnectorShape_idl__ +#define __com_sun_star_drawing_XConnectorShape_idl__ + +#ifndef __com_sun_star_drawing_XShape_idl__ +#include <com/sun/star/drawing/XShape.idl> +#endif + +#ifndef __com_sun_star_drawing_XConnectableShape_idl__ +#include <com/sun/star/drawing/XConnectableShape.idl> +#endif + +#ifndef __com_sun_star_drawing_ConnectionType_idl__ +#include <com/sun/star/drawing/ConnectionType.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** @deprecated + */ +published interface XConnectorShape: com::sun::star::drawing::XShape +{ + //------------------------------------------------------------------------- + + // DocMerge from xml: method com::sun::star::drawing::XConnectorShape::connectStart + /** connects the start of this instance + */ + void connectStart( [in] com::sun::star::drawing::XConnectableShape xShape, + [in] com::sun::star::drawing::ConnectionType nPos ); + + //------------------------------------------------------------------------- + + // DocMerge from xml: method com::sun::star::drawing::XConnectorShape::connectEnd + /** connects the end of this instance. + */ + void connectEnd( [in] com::sun::star::drawing::XConnectableShape xShape, + [in] com::sun::star::drawing::ConnectionType nPos ); + + //------------------------------------------------------------------------- + + // DocMerge from xml: method com::sun::star::drawing::XConnectorShape::disconnectBegin + /** disconnects the given <type>Shape</type> from the start of + this instance. + */ + void disconnectBegin( [in] com::sun::star::drawing::XConnectableShape xShape ); + + //------------------------------------------------------------------------- + + // DocMerge from xml: method com::sun::star::drawing::XConnectorShape::disconnectEnd + /** disconnects the given <type>Shape</type> from the end of + this instance. + */ + void disconnectEnd( [in] com::sun::star::drawing::XConnectableShape xShape ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/XControlShape.idl b/offapi/com/sun/star/drawing/XControlShape.idl new file mode 100644 index 000000000000..2607f082b3d7 --- /dev/null +++ b/offapi/com/sun/star/drawing/XControlShape.idl @@ -0,0 +1,83 @@ +/************************************************************************* + * + * 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_drawing_XControlShape_idl__ +#define __com_sun_star_drawing_XControlShape_idl__ + +#ifndef __com_sun_star_drawing_XShape_idl__ +#include <com/sun/star/drawing/XShape.idl> +#endif + +#ifndef __com_sun_star_awt_XControlModel_idl__ +#include <com/sun/star/awt/XControlModel.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** is implemented by a <type>ControlShape</type> to access the controls model. + + @see com::sun::star::drawing::ControlShape + @see com::sun::star::awt::UnoControlModel +*/ +published interface XControlShape: com::sun::star::drawing::XShape +{ + //------------------------------------------------------------------------- + + /** returns the control model of this <type>Shape</type>. + + @return + if there is already a control model assigned + to this <type>ControlShape</type>, than its returned. + Otherwise you get an empty reference. + */ + com::sun::star::awt::XControlModel getControl(); + + //------------------------------------------------------------------------- + + /** sets the control model for this <type>Shape</type>. + + @param xControl + this will be the new control model that is + displayed with this shape. You may change + the model more than once during the lifetime + of a <type>ControlShape</type> + + */ + [oneway] void setControl( [in] com::sun::star::awt::XControlModel xControl ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/XCustomShapeEngine.idl b/offapi/com/sun/star/drawing/XCustomShapeEngine.idl new file mode 100644 index 000000000000..4bc2aa287066 --- /dev/null +++ b/offapi/com/sun/star/drawing/XCustomShapeEngine.idl @@ -0,0 +1,87 @@ +/************************************************************************* + * + * 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_drawing_XCustomShapeEngine_idl__ +#define __com_sun_star_drawing_XCustomShapeEngine_idl__ + +#ifndef __com_sun_star_awt_Rectangle_idl__ +#include <com/sun/star/awt/Rectangle.idl> +#endif +#ifndef __com_sun_star_drawing_PolyPolygonBezierCoords_idl__ +#include <com/sun/star/drawing/PolyPolygonBezierCoords.idl> +#endif +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif +#ifndef __com_sun_star_drawing_XShape_idl__ +#include <com/sun/star/drawing/XShape.idl> +#endif +#ifndef __com_sun_star_drawing_XCustomShapeHandle_idl__ +#include <com/sun/star/drawing/XCustomShapeHandle.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** The XCustomShapeEngine + */ +interface XCustomShapeEngine: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** + @returns + a the shape that is representing the CustomShape + */ + com::sun::star::drawing::XShape render(); + + /** + @returns the text bound of the shape + */ + com::sun::star::awt::Rectangle getTextBounds(); + + /** + @returns the line geometry of the object + */ + com::sun::star::drawing::PolyPolygonBezierCoords getLineGeometry(); + + /** + @returns + a collection of interaction handles + */ + sequence<com::sun::star::drawing::XCustomShapeHandle> getInteraction(); + + }; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/XCustomShapeHandle.idl b/offapi/com/sun/star/drawing/XCustomShapeHandle.idl new file mode 100644 index 000000000000..45861c445cbd --- /dev/null +++ b/offapi/com/sun/star/drawing/XCustomShapeHandle.idl @@ -0,0 +1,68 @@ +/************************************************************************* + * + * 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_drawing_XCustomShapeHandle_idl__ +#define __com_sun_star_drawing_XCustomShapeHandle_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_Point_idl__ +#include <com/sun/star/awt/Point.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** The XCustomShapeHandle + */ +interface XCustomShapeHandle: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** is getting the actual handle position + + @returns + a the actual handle position + */ + com::sun::star::awt::Point getPosition(); + + /** is setting a new positon for the handle + */ + void setControllerPosition( [in] com::sun::star::awt::Point aPoint ); + + }; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/XDrawPage.idl b/offapi/com/sun/star/drawing/XDrawPage.idl new file mode 100644 index 000000000000..93ec75f7ea5f --- /dev/null +++ b/offapi/com/sun/star/drawing/XDrawPage.idl @@ -0,0 +1,52 @@ +/************************************************************************* + * + * 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_drawing_XDrawPage_idl__ +#define __com_sun_star_drawing_XDrawPage_idl__ + +#ifndef __com_sun_star_drawing_XShapes_idl__ +#include <com/sun/star/drawing/XShapes.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** identifies an <type>XShapes</type> as a <type>DrawPage</type>. + */ +published interface XDrawPage: com::sun::star::drawing::XShapes +{ +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/XDrawPageDuplicator.idl b/offapi/com/sun/star/drawing/XDrawPageDuplicator.idl new file mode 100644 index 000000000000..515d83ac9bc2 --- /dev/null +++ b/offapi/com/sun/star/drawing/XDrawPageDuplicator.idl @@ -0,0 +1,73 @@ +/************************************************************************* + * + * 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_drawing_XDrawPageDuplicator_idl__ +#define __com_sun_star_drawing_XDrawPageDuplicator_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_drawing_XDrawPage_idl__ +#include <com/sun/star/drawing/XDrawPage.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** makes it possible to duplicate pages within the same document. + */ +published interface XDrawPageDuplicator: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** creates a duplicate of a <type>DrawPage</type> or <type>MasterPage</type>, + including the <type>Shape</type>s on that page and inserts it into the + same model. + + @param xPage + that is the source <type>DrawPage</type> or <type>MasterPage</type> + that will be duplicated + + @return + a newly created <type>DrawPage</type> or <type>MasterPage</type> + that as all properties and copies of all <type>Shape</type>s from + the source page. + */ + com::sun::star::drawing::XDrawPage duplicate( [in] com::sun::star::drawing::XDrawPage xPage ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/XDrawPageExpander.idl b/offapi/com/sun/star/drawing/XDrawPageExpander.idl new file mode 100644 index 000000000000..306379ea9a3b --- /dev/null +++ b/offapi/com/sun/star/drawing/XDrawPageExpander.idl @@ -0,0 +1,74 @@ +/************************************************************************* + * + * 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_drawing_XDrawPageExpander_idl__ +#define __com_sun_star_drawing_XDrawPageExpander_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_drawing_XDrawPages_idl__ +#include <com/sun/star/drawing/XDrawPages.idl> +#endif + +#ifndef __com_sun_star_drawing_XDrawPage_idl__ +#include <com/sun/star/drawing/XDrawPage.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** is implemented by documents that can expand the contents + of a summary on a <type>DrawPage</type> into a collection of + <type>DrawPage</type>s. + + @see XDrawPageSummarizer + + @deprecated + */ +published interface XDrawPageExpander: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** creates a collection of <type>DrawPage</type>s from the + summary inside the given <type>DrawPage</type> and adds + them to the same model as the source <type>DrawPage</type>. + */ + com::sun::star::drawing::XDrawPages expand( [in] com::sun::star::drawing::XDrawPage xPage ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/XDrawPageSummarizer.idl b/offapi/com/sun/star/drawing/XDrawPageSummarizer.idl new file mode 100644 index 000000000000..780a484d0783 --- /dev/null +++ b/offapi/com/sun/star/drawing/XDrawPageSummarizer.idl @@ -0,0 +1,72 @@ +/************************************************************************* + * + * 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_drawing_XDrawPageSummarizer_idl__ +#define __com_sun_star_drawing_XDrawPageSummarizer_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_drawing_XDrawPage_idl__ +#include <com/sun/star/drawing/XDrawPage.idl> +#endif + +#ifndef __com_sun_star_drawing_XDrawPages_idl__ +#include <com/sun/star/drawing/XDrawPages.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: interface com::sun::star::drawing::XDrawPageSummarizer +/** is implemented by documents that can create summaries + of their <type>DrawPage</type>s. + + @deprecated + */ +published interface XDrawPageSummarizer: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + // DocMerge from xml: method com::sun::star::drawing::XDrawPageSummarizer::summarize + /** creates a new <type>DrawPage</type> with a summary of all + <type>DrawPage</type>s in the given collection. + */ + com::sun::star::drawing::XDrawPage summarize( [in] com::sun::star::drawing::XDrawPages xPages ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/XDrawPageSupplier.idl b/offapi/com/sun/star/drawing/XDrawPageSupplier.idl new file mode 100644 index 000000000000..6804c0411271 --- /dev/null +++ b/offapi/com/sun/star/drawing/XDrawPageSupplier.idl @@ -0,0 +1,71 @@ +/************************************************************************* + * + * 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_drawing_XDrawPageSupplier_idl__ +#define __com_sun_star_drawing_XDrawPageSupplier_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_drawing_XDrawPage_idl__ +#include <com/sun/star/drawing/XDrawPage.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: interface com::sun::star::drawing::XDrawPageSupplier +/** represents something that provides a <type>DrawPage</type>. + + <p>This interface is provided if the container only supports exactly + one <type>DrawPage</type>. For containers which support multiple + <type>DrawPage</type>s interface <type>XDrawPagesSupplier</type> is + supported.</p> + + @deprecated + */ +published interface XDrawPageSupplier: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + // DocMerge from xml: method com::sun::star::drawing::XDrawPageSupplier::getDrawPage + /** returns the <type>DrawPage</type>. + */ + com::sun::star::drawing::XDrawPage getDrawPage(); + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/XDrawPages.idl b/offapi/com/sun/star/drawing/XDrawPages.idl new file mode 100644 index 000000000000..f913259ed29b --- /dev/null +++ b/offapi/com/sun/star/drawing/XDrawPages.idl @@ -0,0 +1,90 @@ +/************************************************************************* + * + * 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_drawing_XDrawPages_idl__ +#define __com_sun_star_drawing_XDrawPages_idl__ + +#ifndef __com_sun_star_container_XIndexAccess_idl__ +#include <com/sun/star/container/XIndexAccess.idl> +#endif + +#ifndef __com_sun_star_drawing_XDrawPage_idl__ +#include <com/sun/star/drawing/XDrawPage.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** gives access to a container of <type>DrawPage</type>s or <type>MasterPage</type>s. + + <p>The pages are stored in an index container. The order is determined by + the index. + + You usualy get this interface if you use the + <type>XDrawPagesSupplier</type> or the <type>XMasterPagesSupplier</type> + at a model that contains <type>DrawPage</type>s or <type>MasterPage</type>s +*/ +published interface XDrawPages: com::sun::star::container::XIndexAccess +{ + //------------------------------------------------------------------------- + + /** creates and inserts a new <type>DrawPage</type> or <type>MasterPage</type> + into this container + + @param nIndex + the index at which the newly created <type>DrawPage</type> or + <type>MasterPage</type> will be inserted. + + @return + the newly created and already inserted <type>DrawPage</type> or + <type>MasterPage</type>. + */ + com::sun::star::drawing::XDrawPage insertNewByIndex( [in] long nIndex ); + + //------------------------------------------------------------------------- + + /** removes a <type>DrawPage</type> or <type>MasterPage</type> from this + container. + + @param xPage + this <type>DrawPage</type> or <type>MasterPage</type> must be + contained and will be removed from this container. It will + also be disposed and shouldn't be used any further. + */ + void remove( [in] com::sun::star::drawing::XDrawPage xPage ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/XDrawPagesSupplier.idl b/offapi/com/sun/star/drawing/XDrawPagesSupplier.idl new file mode 100644 index 000000000000..fcc749269ef7 --- /dev/null +++ b/offapi/com/sun/star/drawing/XDrawPagesSupplier.idl @@ -0,0 +1,62 @@ +/************************************************************************* + * + * 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_drawing_XDrawPagesSupplier_idl__ +#define __com_sun_star_drawing_XDrawPagesSupplier_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_drawing_XDrawPages_idl__ +#include <com/sun/star/drawing/XDrawPages.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** must be supported to provide access to a multi-page drawing-layer. +*/ +published interface XDrawPagesSupplier: com::sun::star::uno::XInterface +{ + + /** @returns + an indexed container with the service <type>DrawPages</type>. + */ + com::sun::star::drawing::XDrawPages getDrawPages(); + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/XDrawSubController.idl b/offapi/com/sun/star/drawing/XDrawSubController.idl new file mode 100644 index 000000000000..6c1f86dce440 --- /dev/null +++ b/offapi/com/sun/star/drawing/XDrawSubController.idl @@ -0,0 +1,74 @@ +/************************************************************************* + * + * 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_drawing_XDrawSubController_idl__ +#define __com_sun_star_drawing_XDrawSubController_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_beans_XFastPropertySet_idl__ +#include <com/sun/star/beans/XFastPropertySet.idl> +#endif +#ifndef __com_sun_star_drawing_XDrawView_idl__ +#include <com/sun/star/drawing/XDrawView.idl> +#endif +#ifndef __com_sun_star_view_XSelectionSupplier_idl__ +#include <com/sun/star/view/XSelectionSupplier.idl> +#endif + + + +module com { module sun { module star { module drawing { + + +/** View dependent part of the Draw and Impress controller. + <p>During the lifetime of an Impress application the + <type scope="com::sun::star::drawing">DrawingDocumentDrawView</type> + changes its sub controllers whenever the view in the center pane is + replaced by another one. The sub controller handles the things that are + not common to all views, i.e. properties, the current page/slide, and + the selection.</p> +*/ +interface XDrawSubController +{ + interface com::sun::star::drawing::XDrawView; + interface com::sun::star::view::XSelectionSupplier; + + /** This narrow interface is used to pass property values to and from + the sub controller. Property change listeners are handled by the + controller. + */ + interface com::sun::star::beans::XFastPropertySet; +}; + + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/XDrawView.idl b/offapi/com/sun/star/drawing/XDrawView.idl new file mode 100644 index 000000000000..de6fd0bbc7c3 --- /dev/null +++ b/offapi/com/sun/star/drawing/XDrawView.idl @@ -0,0 +1,76 @@ +/************************************************************************* + * + * 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_drawing_XDrawView_idl__ +#define __com_sun_star_drawing_XDrawView_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_drawing_XDrawPage_idl__ +#include <com/sun/star/drawing/XDrawPage.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** is implemented by views that display <type>DrawPage</type>s or <type>MasterPage</type>s. + */ +published interface XDrawView: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** changes the current page. + + @param xPage + this <type>DrawPage</type> or <type>MasterPage</type> will be + displayed inside this view. + */ + void setCurrentPage( [in] com::sun::star::drawing::XDrawPage xPage ); + + //------------------------------------------------------------------------- + + /** returns the current page. + + @return + the <type>DrawPage</type> or <type>MasterPage</type> that is + currently displayed. + */ + com::sun::star::drawing::XDrawPage getCurrentPage(); + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/XEnhancedCustomShapeDefaulter.idl b/offapi/com/sun/star/drawing/XEnhancedCustomShapeDefaulter.idl new file mode 100644 index 000000000000..f69951d20f21 --- /dev/null +++ b/offapi/com/sun/star/drawing/XEnhancedCustomShapeDefaulter.idl @@ -0,0 +1,295 @@ +/************************************************************************* + * + * 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_drawing_XEnhancedCustomShapeDefaulter_idl__ +#define __com_sun_star_drawing_XEnhancedCustomShapeDefaulter_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + + +/** + */ +interface XEnhancedCustomShapeDefaulter: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** + + This interface allows to create shape properties for the given "ShapeType". + The "ShapeType" string can be empty then the current "ShapeType" of the + shape is used. + + "non-primitive", + "rectangle", + "round-rectangle", + "ellipse", + "diamond", + "isosceles-triangle" + "right-triangle", + "parallelogram", + "trapezoid", + "hexagon", + "octagon", + "cross", + "star5", + "right-arrow", + "mso-spt14", + "pentagon-right", + "cube", + "mso-spt17", + "mso-spt18", + "mso-spt19", + "mso-spt20", + "mso-spt21", + "can", + "ring", + "mso-spt24", + "mso-spt25", + "mso-spt26", + "mso-spt27", + "mso-spt28", + "mso-spt29", + "mso-spt30", + "mso-spt31", + "mso-spt32", + "mso-spt33", + "mso-spt34", + "mso-spt35", + "mso-spt36", + "mso-spt37", + "mso-spt38", + "mso-spt39", + "mso-spt40", + "mso-spt41", + "mso-spt42", + "mso-spt43", + "mso-spt44", + "mso-spt45", + "mso-spt46", + "line-callout-1", + "line-callout-2", + "mso-spt49", + "mso-spt50", + "mso-spt51", + "mso-spt52", + "mso-spt53", + "mso-spt54", + "chevron", + "pentagon", + "forbidden", + "star8", + "mso-spt59", + "mso-spt60", + "rectangular-callout", + "round-rectangular-callout", + "round-callout", + "mso-spt64", + "paper", + "left-arrow", + "down-arrow", + "up-arrow", + "left-right-arrow", + "up-down-arrow", + "mso-spt71", + "bang", + "lightning", + "heart", + "mso-spt75", + "quad-arrow", + "left-arrow-callout", + "right-arrow-callout", + "up-arrow-callout", + "down-arrow-callout", + "left-right-arrow-callout", + "up-down-arrow-callout", + "quad-arrow-callout", + "quad-bevel", + "left-bracket", + "right-bracket", + "left-brace", + "right-brace", + "mso-spt89", + "mso-spt90", + "mso-spt91", + "star24", + "striped-right-arrow", + "notched-right-arrow", + "block-arc", + "smiley", + "vertical-scroll", + "horizontal-scroll", + "circular-arrow", + "mso-spt100", + "mso-spt101", + "mso-spt102", + "mso-spt103", + "mso-spt104", + "mso-spt105", + "cloud-callout", + "mso-spt107", + "mso-spt108", + "flowchart-process", + "flowchart-decision", + "flowchart-data", + "flowchart-predefined-process", + "flowchart-internal-storage", + "flowchart-document", + "flowchart-multidocument", + "flowchart-terminator", + "flowchart-preparation", + "flowchart-manual-input", + "flowchart-manual-operation", + "flowchart-connector", + "flowchart-card", + "flowchart-punched-tape", + "flowchart-summing-junction", + "flowchart-or", + "flowchart-collate", + "flowchart-sort", + "flowchart-extract", + "flowchart-merge", + "mso-spt129", + "flowchart-stored-data", + "flowchart-sequential-access", + "flowchart-magnetic-disk", + "flowchart-direct-access-storage", + "flowchart-display", + "flowchart-delay", + "fontwork-plain-text", + "fontwork-stop", + "fontwork-triangle-up", + "fontwork-triangle-down", + "fontwork-chevron-up", + "fontwork-chevron-down", + "mso-spt142", + "mso-spt143", + "fontwork-arch-up-curve", + "fontwork-arch-down-curve", + "fontwork-circle-curve", + "fontwork-open-circle-curve", + "fontwork-arch-up-pour", + "fontwork-arch-down-pour", + "fontwork-circle-pour", + "fontwork-open-circle-pour", + "fontwork-curve-up", + "fontwork-curve-down", + "fontwork-fade-up-and-right", + "fontwork-fade-up-and-left", + "fontwork-wave", + "mso-spt157", + "mso-spt158", + "mso-spt159", + "fontwork-inflate", + "mso-spt161", + "mso-spt162", + "mso-spt163", + "mso-spt164", + "mso-spt165", + "mso-spt166", + "mso-spt167", + "fontwork-fade-right", + "fontwork-fade-left", + "fontwork-fade-up", + "fontwork-fade-down", + "fontwork-slant-up", + "fontwork-slant-down", + "mso-spt174", + "mso-spt175", + "flowchart-alternate-process", + "flowchart-off-page-connector", + "mso-spt178", + "mso-spt179", + "mso-spt180", + "line-callout-3", + "mso-spt182", + "sun", + "moon", + "bracket-pair", + "brace-pair", + "star4", + "mso-spt188", + "mso-spt189", + "mso-spt190", + "mso-spt191", + "mso-spt192", + "mso-spt193", + "mso-spt194", + "mso-spt195", + "mso-spt196", + "mso-spt197", + "mso-spt198", + "mso-spt199", + "mso-spt200", + "mso-spt201", + "mso-spt202", + + SJ: following shape types can't be created with this method, they + are part of the gallery (soon they also will be added) + // gallery: quadrat + // gallery: round-quadrat + // gallery: circle + // gallery: circle-pie + // gallery: frame + // gallery: flower + // gallery: cloud + // gallery: puzzle + // gallery: octagon-bevel + // gallery: diamond-bevel + // gallery: up-right-arrow + // gallery: up-right-down-arrow + // gallery: corner-right-arrow + // gallery: split-arrow + // gallery: up-right-arrow-callout + // gallery: split-round-arrow + // gallery: s-sharped-arrow + // Gallery: star6 + // Gallery: star12 + // Gallery: concave-star6 + // Gallery: signet + // Gallery: doorplate + // gallery: fontwork-arch-left-curve + // gallery: fontwork-arch-right-curve + // gallery: fontwork-arch-left-pour + // gallery: fontwork-arch-right-pour + + */ + void createCustomShapeDefaults( [ in ] string aShapeType ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/drawing/XGluePointsSupplier.idl b/offapi/com/sun/star/drawing/XGluePointsSupplier.idl new file mode 100644 index 000000000000..6fd8b7a8db24 --- /dev/null +++ b/offapi/com/sun/star/drawing/XGluePointsSupplier.idl @@ -0,0 +1,58 @@ +/************************************************************************* + * + * 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_drawing_XGluePointsSupplier_idl__ +#define __com_sun_star_drawing_XGluePointsSupplier_idl__ + +#ifndef __com_sun_star_container_XIndexContainer_idl__ +#include <com/sun/star/container/XIndexContainer.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** must be supported to provide access to a container of <type>GluePoint2</type>. + */ +published interface XGluePointsSupplier: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** + @return + a container of <type>GluePoint2</type> structs. + */ + com::sun::star::container::XIndexContainer getGluePoints(); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/drawing/XLayer.idl b/offapi/com/sun/star/drawing/XLayer.idl new file mode 100644 index 000000000000..2a4f1941f0cd --- /dev/null +++ b/offapi/com/sun/star/drawing/XLayer.idl @@ -0,0 +1,52 @@ +/************************************************************************* + * + * 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_drawing_XLayer_idl__ +#define __com_sun_star_drawing_XLayer_idl__ + +#ifndef __com_sun_star_beans_XPropertySet_idl__ +#include <com/sun/star/beans/XPropertySet.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** identifies the object as a <type>Layer</type>. + */ +published interface XLayer: com::sun::star::beans::XPropertySet +{ +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/XLayerManager.idl b/offapi/com/sun/star/drawing/XLayerManager.idl new file mode 100644 index 000000000000..3c20758b9b0b --- /dev/null +++ b/offapi/com/sun/star/drawing/XLayerManager.idl @@ -0,0 +1,117 @@ +/************************************************************************* + * + * 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_drawing_XLayerManager_idl__ +#define __com_sun_star_drawing_XLayerManager_idl__ + +#ifndef __com_sun_star_container_XIndexAccess_idl__ +#include <com/sun/star/container/XIndexAccess.idl> +#endif + +#ifndef __com_sun_star_drawing_XLayer_idl__ +#include <com/sun/star/drawing/XLayer.idl> +#endif + +#ifndef __com_sun_star_container_NoSuchElementException_idl__ +#include <com/sun/star/container/NoSuchElementException.idl> +#endif + +#ifndef __com_sun_star_drawing_XShape_idl__ +#include <com/sun/star/drawing/XShape.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** This interface makes it possible to access and manage the + <type>Layer</type>s of a document. + + @see LayerManager + */ +published interface XLayerManager: com::sun::star::container::XIndexAccess +{ + //------------------------------------------------------------------------- + + /** creates a new <type>Layer</type> + + @param nIndex + the index at which the new layer is inserted + + @returns + the new created <type>Layer</type> + */ + com::sun::star::drawing::XLayer insertNewByIndex( [in] long nIndex ); + + //------------------------------------------------------------------------- + + /** removes a <type>Layer</type> and all <type>Shape</type>s on + this <type>Layer</type>. + + @param xLayer + this <type>Layer</type> will be removed and disposed + */ + void remove( [in] com::sun::star::drawing::XLayer xLayer ) + raises( com::sun::star::container::NoSuchElementException ); + + //------------------------------------------------------------------------- + + /** attaches a <type>Shape</type> to the given <type>Layer</type>. + + @param xShape + this is the <type>Shape</type> that will be attached to a <type>Layer</type> + + @param xLayer + this is the <type>Layer</type> that will be attached to a <type>Shape</type> + */ + void attachShapeToLayer( [in] com::sun::star::drawing::XShape xShape, + [in] com::sun::star::drawing::XLayer xLayer ); + + //------------------------------------------------------------------------- + + /** queries the <type>Layer</type> that a <type>Shape</type> is attached to + + @param xShape + specifies the <type>Shape</type> for which the layer is requested. + + @returns + the <type>Layer</type> to which the <type>Shape</type> is + attached. + + */ + com::sun::star::drawing::XLayer getLayerForShape( [in] com::sun::star::drawing::XShape xShape ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/XLayerSupplier.idl b/offapi/com/sun/star/drawing/XLayerSupplier.idl new file mode 100644 index 000000000000..3c5bcfdbd3b8 --- /dev/null +++ b/offapi/com/sun/star/drawing/XLayerSupplier.idl @@ -0,0 +1,66 @@ +/************************************************************************* + * + * 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_drawing_XLayerSupplier_idl__ +#define __com_sun_star_drawing_XLayerSupplier_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_container_XNameAccess_idl__ +#include <com/sun/star/container/XNameAccess.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** gives access to a <type>LayerManager</type>. + + @see LayerManager + */ +published interface XLayerSupplier: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** @returns + the <type>LayerManager</type>. + */ + com::sun::star::container::XNameAccess getLayerManager(); + +}; + +//============================================================================= + +}; }; }; }; + + +#endif + diff --git a/offapi/com/sun/star/drawing/XMasterPageTarget.idl b/offapi/com/sun/star/drawing/XMasterPageTarget.idl new file mode 100644 index 000000000000..04dcab906881 --- /dev/null +++ b/offapi/com/sun/star/drawing/XMasterPageTarget.idl @@ -0,0 +1,74 @@ +/************************************************************************* + * + * 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_drawing_XMasterPageTarget_idl__ +#define __com_sun_star_drawing_XMasterPageTarget_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_drawing_XDrawPage_idl__ +#include <com/sun/star/drawing/XDrawPage.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** is implemented by objects that can be linked to a + <type>MasterPage</type>. + + @see DrawPage + */ +published interface XMasterPageTarget: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** @returns the <type>MasterPage</type> linked to this object. + */ + com::sun::star::drawing::XDrawPage getMasterPage(); + + //------------------------------------------------------------------------- + + /** links a <type>MasterPage</type> to this object. + + @param xMasterPage + the <type>MasterPage</type> that is linked to this object + */ + void setMasterPage( [in] com::sun::star::drawing::XDrawPage xMasterPage ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/XMasterPagesSupplier.idl b/offapi/com/sun/star/drawing/XMasterPagesSupplier.idl new file mode 100644 index 000000000000..77d7fd1238dc --- /dev/null +++ b/offapi/com/sun/star/drawing/XMasterPagesSupplier.idl @@ -0,0 +1,64 @@ +/************************************************************************* + * + * 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_drawing_XMasterPagesSupplier_idl__ +#define __com_sun_star_drawing_XMasterPagesSupplier_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_drawing_XDrawPages_idl__ +#include <com/sun/star/drawing/XDrawPages.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** must be supported to provide access to the + <type>MasterPage</type>s of a multi-page drawing-layer. + */ +published interface XMasterPagesSupplier: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** @returns + an indexed container with the service <type>MasterPages</type>. + */ + com::sun::star::drawing::XDrawPages getMasterPages(); + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/XPresenterHelper.idl b/offapi/com/sun/star/drawing/XPresenterHelper.idl new file mode 100644 index 000000000000..d1a2d5d3e176 --- /dev/null +++ b/offapi/com/sun/star/drawing/XPresenterHelper.idl @@ -0,0 +1,179 @@ +/************************************************************************* + * + * 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_drawing_XPresenterHelper_idl__ +#define __com_sun_star_drawing_XPresenterHelper_idl__ + +#ifndef __com_sun_star_awt_XWindow_idl__ +#include <com/sun/star/awt/XWindow.idl> +#endif +#ifndef __com_sun_star_rendering_XCanvas_idl__ +#include <com/sun/star/rendering/XCanvas.idl> +#endif +#ifndef __com_sun_star_rendering_XSpriteCanvas_idl__ +#include <com/sun/star/rendering/XSpriteCanvas.idl> +#endif +#ifndef __com_sun_star_awt_Rectangle_idl__ +#include <com/sun/star/awt/Rectangle.idl> +#endif + +module com { module sun { module star { module drawing { + +constants CanvasFeature +{ + const short None = 0; + const short SpriteCanvas = 1; +}; + +/** This interface is a collection of functions that are necessary to + implement larger parts of the presenter screen as extension. The + methods of this interface give access to services that can, at the + moment, only implemented in the Office core, not in an extension. + + <p>With time some, maybe all, methods can moved to other, better suited, + interfaces.</p> +*/ +interface XPresenterHelper +{ + /** Create a new window as child window of the given parent window. + @param xParentWindow + The parent window of the new window. + @param bCreateSystemChildWindow + When <TRUE/> then the new window will be a system window that, + in the context of the presenter screen, can not be painted over + by other windows that lie behind it. + @param bInitiallyVisible + When <TRUE/> the new window will be visible from the start, + i.e. a window listener will not receive a windowShown signal. + @param bEnableChildTransparentMode + When <TRUE/> the parent window is painted behind its child + windows. This is one half of allowing child windows to be + transparent. + @param bEnableParentClip + When <TRUE/> then the parent window is not clipped where its + child windows are painted. This is the other half of allowing + child windows to be transparent. + */ + ::com::sun::star::awt::XWindow createWindow ( + [in] ::com::sun::star::awt::XWindow xParentWindow, + [in] boolean bCreateSystemChildWindow, + [in] boolean bInitiallyVisible, + [in] boolean bEnableChildTransparentMode, + [in] boolean bEnableParentClip); + + /** Create a new canvas for the given window. The new canvas is a + wrapper around the given shared canvas. The wrapper only modifies + the origin in all output and clipping methods. + @param xUpdateCanvas + This canvas is used to call updateScreen() on. May be <NULL/> + @param xUpdateWindow + The window that belongs to the update canvas. May also be + <NULL/> (is expected to b <NULL/> whenever xUpdateCanvas is.) + @param xSharedCanvas + The canvas that is shared by the wrapper. + @param xSharedWindow + The window of the shared canvas. This is used to determine the + proper offset. + @param xWindow + The canvas is created for this window. Must not be <NULL/> + */ + ::com::sun::star::rendering::XCanvas createSharedCanvas ( + [in] ::com::sun::star::rendering::XSpriteCanvas xUpdateCanvas, + [in] ::com::sun::star::awt::XWindow xUpdateWindow, + [in] ::com::sun::star::rendering::XCanvas xSharedCanvas, + [in] ::com::sun::star::awt::XWindow xSharedWindow, + [in] ::com::sun::star::awt::XWindow xWindow); + + /** Create a new canvas for the given window. + @param xWindow + The canvas is created for this window. Must not be <NULL/> + @param nRequestedCanvasFeatureList + List of requested features that the new canvas should (has to) + provide. Use only values from the <type>CanvasFeature</type> + constants group. + @param sOptionalCanvasServiceName + When an explicit service name is given then a new object of this + service is created. This service name lets the caller select a + specific canvas implementation, e.g. with or without hardware + acceleration. + */ + ::com::sun::star::rendering::XCanvas createCanvas ( + [in] ::com::sun::star::awt::XWindow xWindow, + [in] short nRequestedCanvasFeatureList, + [in] string sOptionalCanvasServiceName); + + /** Move the specified window to the top of its stacking order. As a + result the window will be painted over all its overlapping + siblings. + @param xWindow + This window will be moved to the top of its stacking order. + */ + void toTop ( + [in] ::com::sun::star::awt::XWindow xWindow); + + /** Load a bitmap from a file or other accessible resource that can be + located via a URL. + @param sURL + The URL of the bitmap. For a file URL the bitmap is loaded from + the specified file. + @param xCanvas + The bitmap is created to be compatible, and possibly optimized, + for this canvas. + */ + ::com::sun::star::rendering::XBitmap loadBitmap ( + [in] string sURL, + [in] ::com::sun::star::rendering::XCanvas xCanvas); + + /** Capture the mouse so that no other window will receive mouse events. + Note that this is a potentially dangerous method. Not calling + releaseMouse eventually can lead to an unresponsive application. + @param xWindow + The window for which mouse events will be notified even when the + mouse pointer moves outside the window or over other windows. + */ + void captureMouse ( + [in] ::com::sun::star::awt::XWindow xWindow); + + /** Release a previously captured mouse. + @param xWindow + The window from which the mouse will be released. + */ + void releaseMouse ( + [in] ::com::sun::star::awt::XWindow xWindow); + + /** Return the bounding box of the given child window relative to the + direct or indirect parent window. + */ + com::sun::star::awt::Rectangle getWindowExtentsRelative ( + [in] ::com::sun::star::awt::XWindow xChildWindow, + [in] ::com::sun::star::awt::XWindow xParentWindow); +}; + + +}; }; }; }; // ::com::sun::star::drawing + +#endif diff --git a/offapi/com/sun/star/drawing/XSelectionFunction.idl b/offapi/com/sun/star/drawing/XSelectionFunction.idl new file mode 100644 index 000000000000..5e7abe8b1d42 --- /dev/null +++ b/offapi/com/sun/star/drawing/XSelectionFunction.idl @@ -0,0 +1,86 @@ +/************************************************************************* + * + * 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_drawing_XSelectionFunction_idl__ +#define __com_sun_star_drawing_XSelectionFunction_idl__ + +#ifndef __com_sun_star_container_XIndexAccess_idl__ +#include <com/sun/star/container/XIndexAccess.idl> +#endif + +#ifndef __com_sun_star_lang_XComponent_idl__ +#include <com/sun/star/lang/XComponent.idl> +#endif + +#ifndef __com_sun_star_lang_XServiceInfo_idl__ +#include <com/sun/star/lang/XServiceInfo.idl> +#endif + +#ifndef __com_sun_star_frame_XDispatch_idl__ +#include <com/sun/star/frame/XDispatch.idl> +#endif + +#ifndef __com_sun_star_awt_XKeyHandler_idl__ +#include <com/sun/star/awt/XKeyHandler.idl> +#endif + +#ifndef __com_sun_star_awt_XMouseClickHandler_idl__ +#include <com/sun/star/awt/XMouseClickHandler.idl> +#endif + +#ifndef __com_sun_star_awt_XMouseMotionHandler_idl__ +#include <com/sun/star/awt/XMouseMotionHandler.idl> +#endif + +#ifndef __com_sun_star_view_XSelectionChangeListener_idl__ +#include <com/sun/star/view/XSelectionChangeListener.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** + */ +published interface XSelectionFunction +{ + interface ::com::sun::star::lang::XComponent; + interface ::com::sun::star::lang::XServiceInfo; + interface ::com::sun::star::frame::XDispatch; + interface ::com::sun::star::awt::XKeyHandler; + interface ::com::sun::star::awt::XMouseClickHandler; + interface ::com::sun::star::awt::XMouseMotionHandler; + interface ::com::sun::star::view::XSelectionChangeListener; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/XShape.idl b/offapi/com/sun/star/drawing/XShape.idl new file mode 100644 index 000000000000..f5ba5579ee30 --- /dev/null +++ b/offapi/com/sun/star/drawing/XShape.idl @@ -0,0 +1,102 @@ +/************************************************************************* + * + * 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_drawing_XShape_idl__ +#define __com_sun_star_drawing_XShape_idl__ + +#ifndef __com_sun_star_drawing_XShapeDescriptor_idl__ +#include <com/sun/star/drawing/XShapeDescriptor.idl> +#endif + +#ifndef __com_sun_star_awt_Point_idl__ +#include <com/sun/star/awt/Point.idl> +#endif + +#ifndef __com_sun_star_awt_Size_idl__ +#include <com/sun/star/awt/Size.idl> +#endif + +#ifndef __com_sun_star_beans_PropertyVetoException_idl__ +#include <com/sun/star/beans/PropertyVetoException.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** lets you do a basic transformation on a <type>Shape</type> and + get its type. + */ +published interface XShape: com::sun::star::drawing::XShapeDescriptor +{ + //------------------------------------------------------------------------- + + /** gets the current position of this object. + + @returns + the position of the top left edge in 100/th mm + */ + com::sun::star::awt::Point getPosition(); + + //------------------------------------------------------------------------- + + /** sets the current position of this object + + @param aPosition + the position of the top left edge in 100/th mm + */ + void setPosition( [in] com::sun::star::awt::Point aPosition ); + + //------------------------------------------------------------------------- + + /** gets the size of this object. + + @returns + the size in 100/th mm + */ + com::sun::star::awt::Size getSize(); + + //------------------------------------------------------------------------- + + /** sets the size of this object. + + @param aSize + the size in 100/th mm + */ + void setSize( [in] com::sun::star::awt::Size aSize ) + raises( com::sun::star::beans::PropertyVetoException ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/XShapeAligner.idl b/offapi/com/sun/star/drawing/XShapeAligner.idl new file mode 100644 index 000000000000..a3eda14c62b8 --- /dev/null +++ b/offapi/com/sun/star/drawing/XShapeAligner.idl @@ -0,0 +1,72 @@ +/************************************************************************* + * + * 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_drawing_XShapeAligner_idl__ +#define __com_sun_star_drawing_XShapeAligner_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_drawing_XShapes_idl__ +#include <com/sun/star/drawing/XShapes.idl> +#endif + +#ifndef __com_sun_star_drawing_Alignment_idl__ +#include <com/sun/star/drawing/Alignment.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: interface com::sun::star::drawing::XShapeAligner +/** Objects implementing this interface can be used to align + <type>Shape</type>s. + + @deprecated + */ +published interface XShapeAligner: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + // DocMerge from xml: method com::sun::star::drawing::XShapeAligner::alignShapes + /** aligns the specified <type>Shape</type>s. + */ + void alignShapes( [inout] com::sun::star::drawing::XShapes aShapes, + [in] com::sun::star::drawing::Alignment eType ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/XShapeArranger.idl b/offapi/com/sun/star/drawing/XShapeArranger.idl new file mode 100644 index 000000000000..18ca895d33f9 --- /dev/null +++ b/offapi/com/sun/star/drawing/XShapeArranger.idl @@ -0,0 +1,121 @@ +/************************************************************************* + * + * 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_drawing_XShapeArranger_idl__ +#define __com_sun_star_drawing_XShapeArranger_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_drawing_XShapes_idl__ +#include <com/sun/star/drawing/XShapes.idl> +#endif + +#ifndef __com_sun_star_drawing_Arrangement_idl__ +#include <com/sun/star/drawing/Arrangement.idl> +#endif + +#ifndef __com_sun_star_drawing_XShape_idl__ +#include <com/sun/star/drawing/XShape.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: interface com::sun::star::drawing::XShapeArranger +/** Objects implementing this interface can be used to arrange + <type>Shape</type>s. + + @deprecated + */ +published interface XShapeArranger: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + // DocMerge from xml: method com::sun::star::drawing::XShapeArranger::arrange + /** applies the specified <type>Arrangement</type> to + the specified collection of <type>Shape</type>s. + */ + void arrange( [in] com::sun::star::drawing::XShapes xShapes, + [in] com::sun::star::drawing::Arrangement eType ); + + //------------------------------------------------------------------------- + + // DocMerge from xml: method com::sun::star::drawing::XShapeArranger::bringToFront + /** moves the specified <type>Shape</type>s by a specified number + of objects more to the front. + */ + void bringToFront( [in] com::sun::star::drawing::XShapes xShapes, + [in] short nSteps ); + + //------------------------------------------------------------------------- + + // DocMerge from xml: method com::sun::star::drawing::XShapeArranger::sendToBack + /** moves the specified <type>Shape</type>s + <var>nSteps</var> objects more to the back. + */ + void sendToBack( [in] com::sun::star::drawing::XShapes xShapes, + [in] short nSteps ); + + //------------------------------------------------------------------------- + + // DocMerge from xml: method com::sun::star::drawing::XShapeArranger::setBehindShape + /** moves the specified collection of <type>Shape</type>s + behind the specified single <type>Shape</type>. + */ + void setBehindShape( [in] com::sun::star::drawing::XShapes xShapes, + [in] com::sun::star::drawing::XShape xShape ); + + //------------------------------------------------------------------------- + + // DocMerge from xml: method com::sun::star::drawing::XShapeArranger::setInFrontOf + /** moves the specified collection of <type>Shape</type>s in + front of the specified single <type>Shape</type>. + */ + void setInFrontOf( [in] com::sun::star::drawing::XShapes xShapes, + [in] com::sun::star::drawing::XShape xShape ); + + //------------------------------------------------------------------------- + + // DocMerge from xml: method com::sun::star::drawing::XShapeArranger::reverseOrder + /** reverses the order of the specified collection of + <type>Shape</type>s. + */ + void reverseOrder( [in] com::sun::star::drawing::XShapes xShapes ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/XShapeBinder.idl b/offapi/com/sun/star/drawing/XShapeBinder.idl new file mode 100644 index 000000000000..42b36a85f7f7 --- /dev/null +++ b/offapi/com/sun/star/drawing/XShapeBinder.idl @@ -0,0 +1,89 @@ +/************************************************************************* + * + * 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_drawing_XShapeBinder_idl__ +#define __com_sun_star_drawing_XShapeBinder_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_drawing_XShape_idl__ +#include <com/sun/star/drawing/XShape.idl> +#endif + +#ifndef __com_sun_star_drawing_XShapes_idl__ +#include <com/sun/star/drawing/XShapes.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** connects or breaks the lines of <type>Shape</type>s + */ +published interface XShapeBinder: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** binds <type>Shape</type>s together. + + @param xShapes + a container with <type>Shape</type>s that will be bind toghether. + All <type>Shapes</type> will be converted to a <type>PolyPolygonBezierShape</type> + and the lines will be connected. The <type>Shape</types>s in xShape will be + removed from the <type>GenericDrawPage</type> and disposed. + + @returns + a newly created <type>PolyPolygonBezierShape</type> which contains all + line segment from the supplied <type>Shape</type>s. It is also added + to the <type>GenericDrawPage</type> of the source <type>Shape</type>s. + */ + com::sun::star::drawing::XShape bind( [in] com::sun::star::drawing::XShapes xShapes ); + + //------------------------------------------------------------------------- + + /** breaks a <type>Shape</type> into its line segments + + @param xShape + the given <type>Shape</type> will be converted to a <type>PolyPolygonBezierShape</type> + and the line segments of this <type>Shape</type> will be used to create + new <type>PolyPolygonBezierShape</type> shapes. The original <type>Shape</type> + will be removed from its <type>GenericDrawPage</type> and disposed. + */ + void unbind( [in] com::sun::star::drawing::XShape xShape ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/XShapeCombiner.idl b/offapi/com/sun/star/drawing/XShapeCombiner.idl new file mode 100644 index 000000000000..f97d15122440 --- /dev/null +++ b/offapi/com/sun/star/drawing/XShapeCombiner.idl @@ -0,0 +1,92 @@ +/************************************************************************* + * + * 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_drawing_XShapeCombiner_idl__ +#define __com_sun_star_drawing_XShapeCombiner_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_drawing_XShape_idl__ +#include <com/sun/star/drawing/XShape.idl> +#endif + +#ifndef __com_sun_star_drawing_XShapes_idl__ +#include <com/sun/star/drawing/XShapes.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** specifies the combine/split functionality. + */ +published interface XShapeCombiner: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** combines <type>Shape</type>s + + @param xShapes + the <type>Shape</type>s inside this container are converted + to <type>PolyPolygonBezierShape</type>s and are than combined + into one <type>PolyPolygonBezierShape</type>. + The <type>Shape</types>s in xShape will be removed from the + <type>GenericDrawPage</type> and disposed. + + @returns + a newly created <type>PolyPolygonBezierShape</type> which contains all + converted <type>PolyPolygonBezierShape</type> combined. It is also added + to the <type>GenericDrawPage</type> of the source <type>Shape</type>s. + + */ + com::sun::star::drawing::XShape combine( [in] com::sun::star::drawing::XShapes xShapes ); + + //------------------------------------------------------------------------- + + /** splits <type>Shape</type>s. + + @param xShapes + the <type>Shape</type> is converted to a + <type>PolyPolygonBezierShape</type>s and then splited into + several <type>PolyPolygonBezierShape</type>s + The <type>Shape</types>s in xShape will be removed from the + <type>GenericDrawPage</type> and disposed. + */ + void split( [in] com::sun::star::drawing::XShape xGroup ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/XShapeDescriptor.idl b/offapi/com/sun/star/drawing/XShapeDescriptor.idl new file mode 100644 index 000000000000..dbadb01be765 --- /dev/null +++ b/offapi/com/sun/star/drawing/XShapeDescriptor.idl @@ -0,0 +1,61 @@ +/************************************************************************* + * + * 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_drawing_XShapeDescriptor_idl__ +#define __com_sun_star_drawing_XShapeDescriptor_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** offers some settings which are allowed even for objects which are not yet inserted into a draw page. + + @deprecated + replaced by <type scope="com::sun::star::lang">XServiceName</type> + */ +published interface XShapeDescriptor: com::sun::star::uno::XInterface +{ + /** + @returns + the programmatic name of the shape type. + */ + string getShapeType(); + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/XShapeGroup.idl b/offapi/com/sun/star/drawing/XShapeGroup.idl new file mode 100644 index 000000000000..66013be4bacb --- /dev/null +++ b/offapi/com/sun/star/drawing/XShapeGroup.idl @@ -0,0 +1,85 @@ +/************************************************************************* + * + * 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_drawing_XShapeGroup_idl__ +#define __com_sun_star_drawing_XShapeGroup_idl__ + +#ifndef __com_sun_star_drawing_XShape_idl__ +#include <com/sun/star/drawing/XShape.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** is implemented by <type>Shape</type>s that contain other + <type>Shape</type>s. + + @deprecated + */ +published interface XShapeGroup: com::sun::star::drawing::XShape +{ + //------------------------------------------------------------------------- + + // DocMerge from xml: method com::sun::star::drawing::XShapeGroup::enterGroup + /** enters the group which enables the editing function + for the parts of a grouped <type>Shape</type>. Then the parts can + be edited instead of the group as a whole. + + + + <p>This affects only the user interface. The behavior is not + specified if this instance is not visible on any view. In this case + it may or may not work.</p> + */ + void enterGroup(); + + //------------------------------------------------------------------------- + + // DocMerge from xml: method com::sun::star::drawing::XShapeGroup::leaveGroup + /** leaves the group, which disables the editing function + for the parts of a grouped <type>Shape</type>. Then only the + group as a whole can be edited. + + + + <p>This affects only the user interface. The behavior is not + specified if this instance is not visible on any view. In this case + it may or may not work.</p> + */ + void leaveGroup(); + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/XShapeGrouper.idl b/offapi/com/sun/star/drawing/XShapeGrouper.idl new file mode 100644 index 000000000000..a5474b35a5d7 --- /dev/null +++ b/offapi/com/sun/star/drawing/XShapeGrouper.idl @@ -0,0 +1,93 @@ +/************************************************************************* + * + * 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_drawing_XShapeGrouper_idl__ +#define __com_sun_star_drawing_XShapeGrouper_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_drawing_XShapeGroup_idl__ +#include <com/sun/star/drawing/XShapeGroup.idl> +#endif + +#ifndef __com_sun_star_drawing_XShapes_idl__ +#include <com/sun/star/drawing/XShapes.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** specifies the group/ungroup functionality. + */ +published interface XShapeGrouper: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** groups the <type>Shape</type>s inside a collection. + + <p>Grouping of objects in text documents works only if none + of the objects has an anchor of type + <member scope="com::sun::star::text::TextContentAnchorType">AS_CHARACTER</member> + </p>. + + @param xShapes + the <type>Shape</type>s that will be grouped. They + must all be inserted into the same <type>GenericDrawPage</type>. + + @returns + a newly created <type>GroupShape</type> that contains all + <type>Shape</type>s from xShapes and is also added to the + <type>GenericDrawPage</type> of the <type>Shape</type>s + in xShapes. + */ + com::sun::star::drawing::XShapeGroup group( [in] com::sun::star::drawing::XShapes xShapes ); + + //------------------------------------------------------------------------- + + /** ungroups a given <type>GroupShape</type>. + + @param aGroup + moves all <type>Shape</type>s from this <type>GroupShape</type> + to the parent <type>XShapes</type> of the <type>GroupShape</type>. + The <type>GroupShape</type> is than removed from the + <type>GenericDrawPage</type> and disposed. + */ + void ungroup( [in] com::sun::star::drawing::XShapeGroup aGroup ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/XShapeMirror.idl b/offapi/com/sun/star/drawing/XShapeMirror.idl new file mode 100644 index 000000000000..1a64265bd10f --- /dev/null +++ b/offapi/com/sun/star/drawing/XShapeMirror.idl @@ -0,0 +1,83 @@ +/************************************************************************* + * + * 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_drawing_XShapeMirror_idl__ +#define __com_sun_star_drawing_XShapeMirror_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_drawing_XShapes_idl__ +#include <com/sun/star/drawing/XShapes.idl> +#endif + +#ifndef __com_sun_star_drawing_MirrorAxis_idl__ +#include <com/sun/star/drawing/MirrorAxis.idl> +#endif + +#ifndef __com_sun_star_drawing_XShape_idl__ +#include <com/sun/star/drawing/XShape.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** Objects implementing this interface can be used to mirror + <type>Shape</type>s. + + @deprecated + */ +published interface XShapeMirror: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** mirrors the given <type>Shape</type>s + at the given axis. + */ + void mirror( [inout] com::sun::star::drawing::XShapes aShapes, + [in] com::sun::star::drawing::MirrorAxis eAxis ); + + //------------------------------------------------------------------------- + + /** mirrors the given <type>Shape</type>s at + the given axis. + */ + void mirrorAtAxis( [inout] com::sun::star::drawing::XShapes aShapes, + [in] com::sun::star::drawing::XShape aLine ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/XShapes.idl b/offapi/com/sun/star/drawing/XShapes.idl new file mode 100644 index 000000000000..b0b9c78646b5 --- /dev/null +++ b/offapi/com/sun/star/drawing/XShapes.idl @@ -0,0 +1,80 @@ +/************************************************************************* + * + * 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_drawing_XShapes_idl__ +#define __com_sun_star_drawing_XShapes_idl__ + +#ifndef __com_sun_star_container_XIndexAccess_idl__ +#include <com/sun/star/container/XIndexAccess.idl> +#endif + +#ifndef __com_sun_star_drawing_XShape_idl__ +#include <com/sun/star/drawing/XShape.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +/** makes it possible to access, add, and remove the + <type>Shape</type>s in a collection. + + @see DrawPage + @see MasterPage + @see DrawingDocumentDrawView + */ +published interface XShapes: com::sun::star::container::XIndexAccess +{ + //------------------------------------------------------------------------- + + /** inserts a <type>Shape</type> into this collection. + + @param xShape + a <type>Shape</type> that will be inserted. + */ + void add( [in] com::sun::star::drawing::XShape xShape ); + + //------------------------------------------------------------------------- + + /** removes a <type>Shape</type> from this collection. + + @param xShape + the <type>Shape</type> will be removed from the + collection and disposed. + */ + void remove( [in] com::sun::star::drawing::XShape xShape ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/XSlidePreviewCache.idl b/offapi/com/sun/star/drawing/XSlidePreviewCache.idl new file mode 100644 index 000000000000..ee40c5f34fa6 --- /dev/null +++ b/offapi/com/sun/star/drawing/XSlidePreviewCache.idl @@ -0,0 +1,143 @@ +/************************************************************************* + * + * 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_drawing_XSlidePreviewCache_idl__ +#define __com_sun_star_drawing_XSlidePreviewCache_idl__ + +#ifndef __com_sun_star_container_XIndexAccess_idl__ +#include <com/sun/star/container/XIndexAccess.idl> +#endif +#ifndef __com_sun_star_geometry_IntegerSize2D_idl__ +#include <com/sun/star/geometry/IntegerSize2D.idl> +#endif +#ifndef __com_sun_star_lang_IllegalArgumentException_idl__ +#include <com/sun/star/lang/IllegalArgumentException.idl> +#endif +#ifndef __com_sun_star_rendering_XBitmap_idl__ +#include <com/sun/star/rendering/XBitmap.idl> +#endif +#ifndef __com_sun_star_rendering_XCanvas_idl__ +#include <com/sun/star/rendering/XCanvas.idl> +#endif + + +module com { module sun { module star { module drawing { + +/** Listener for asynchronous preview creations. Called when a slide + preview has been created that was previously requested via a call to + <method>XSlidePreviewCache::getSlidePreview()</method>. The + implementor may then call <method>getSlidePreview()</method> a second + time to get the up-to-date version of the preview. +*/ +interface XSlidePreviewCacheListener +{ + /** Called by a <interface>XSlidePreviewCache</interface> object when a + preview has been created for the slide with the given index. + @param nSlideIndex + The index of the slide for which a new preview has been created. + */ + void notifyPreviewCreation ([in] long nSlideIndex); +}; + + + + +/** A cache of preview bitmaps for the slides of one Impress or Draw + document in one size. There may be more than one cache for one + document. These are internally connected and for missing previews one + cache may take it from another cache and scale it to the desired size. + When a preview is not present then it is created asynchronously. On + creation all registered listeners are notified. + + Slides are referenced via their index in an XIndexAccess container in + order to allow multiple references to a single slide (custom + presentations). +*/ +interface XSlidePreviewCache +{ + /** Set the set of slides for which the cache will provide the + previews. All slides in the given XIndexAccess are required to come + from the given model. + @param xSlides + The set of slides for which the called cache will provide the + previews. This container defines the indices that are used to + look up slides. + @param xDocument + The model that contains the slides reference by the xSlides argument. + */ + void setDocumentSlides ( + [in] ::com::sun::star::container::XIndexAccess xSlides, + [in] ::com::sun::star::uno::XInterface xDocument); + + /** Define which slides are currently visible on the screen and which + are not. This information is used for give preview creation for + visible slides a higher priority than for those slides that are not + visible. + */ + void setVisibleRange ([in] long nFirstVisibleSlideIndex, [in] long nLastVisibleSlideIndex); + + /** Define the size of the previews that are managed by the called + cache. + */ + void setPreviewSize ([in] ::com::sun::star::geometry::IntegerSize2D aSize); + + /** Return a preview for the given slide index. + The returned bitmap may be the requested preview, a preview of the + preview, i.e. a scaled up or down version, or an empty reference + when the preview is not yet present. + + This call may lead to the asynchronous creation of the requested + preview. In that case all registered listeners are notified when + the preview has been created. + */ + ::com::sun::star::rendering::XBitmap getSlidePreview ( + [in] long nSlideIndex, + [in] ::com::sun::star::rendering::XCanvas xCanvas) + raises(::com::sun::star::lang::IllegalArgumentException); + + /** Register a listener that is called when a preview has been created + asynchronously. + */ + void addPreviewCreationNotifyListener ([in] XSlidePreviewCacheListener xListener); + + /** Remove a previously registered listener for preview creations. + */ + void removePreviewCreationNotifyListener ([in] XSlidePreviewCacheListener xListener); + + /** Stop the asynchronous creation of previews temporarily. + Call <method>resume()</method> to restart it. + */ + void pause (); + + /** Resume the asynchronous creation of slide previews. + */ + void resume (); +}; + +}; }; }; }; // ::com::sun::star::drawing + +#endif diff --git a/offapi/com/sun/star/drawing/XSlideRenderer.idl b/offapi/com/sun/star/drawing/XSlideRenderer.idl new file mode 100644 index 000000000000..c2ad6030de9d --- /dev/null +++ b/offapi/com/sun/star/drawing/XSlideRenderer.idl @@ -0,0 +1,112 @@ +/************************************************************************* + * + * 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_drawing_XSlideRenderer_idl__ +#define __com_sun_star_drawing_XSlideRenderer_idl__ + +#ifndef __com_sun_star_awt_XBitmap_idl__ +#include <com/sun/star/awt/XBitmap.idl> +#endif +#ifndef __com_sun_star_drawing_XDrawPage_idl__ +#include <com/sun/star/drawing/XDrawPage.idl> +#endif +#ifndef __com_sun_star_rendering_XBitmap_idl__ +#include <com/sun/star/rendering/XBitmap.idl> +#endif +#ifndef __com_sun_star_rendering_XSpriteCanvas_idl__ +#include <com/sun/star/rendering/XSpriteCanvas.idl> +#endif + + +module com { module sun { module star { module drawing { + +/** Create preview bitmaps for single slides. +*/ +interface XSlideRenderer +{ + /** Create a preview for the given slide that has the same aspect ratio + as the page and is as large as possible but not larger than the + specified size. + + The reason for not using the given size directly as preview size and + thus possibly changing the aspect ratio is that + a) a different aspect ratio is not used often, and + b) leaving the adaption of the actual preview size (according to the + aspect ratio of the slide) to the slide renderer is more convenient + to the caller than having to this himself. + + @param xSlide + The slide for which a preview will be created. + @param aMaximumPreviewPixelSize + The maximum size of the preview measured in pixels. When the + aspect ratios of this size and of the given slide differ, then + resulting preview will either have the width or the height of + this size. + @param nSuperSampleFactor + When larger than the default 1 then internally a larger preview + is created which, before it is returned, is scaled down to the + requested size. The intermediate size is nSuperSampleFactor + times the original size. Values larger than 1 result in higher + memory consumption and longer runtime. + This value is an attempt to provide some antialiasing and so to + provide more readable slide previews. May become obsolete in + the future when true antialiasing suppport will be integrated. + */ + com::sun::star::awt::XBitmap createPreview ( + [in] XDrawPage xSlide, + [in] com::sun::star::awt::Size aMaximumPreviewPixelSize, + [in] short nSuperSampleFactor); + + /** Exactly the same functionality as <member>createPreview()</member>, + only a different return type: + <type>com::sun::star::rendering::XBitmap</type> instead + of <type>com::sun::star::awt::XBitmap</type>. + @see createPreview + @param xCanvas + This canvas is used create a canvas specific bitmap. + */ + com::sun::star::rendering::XBitmap createPreviewForCanvas ( + [in] XDrawPage xSlide, + [in] com::sun::star::awt::Size aMaximumPreviewPixelSize, + [in] short nSuperSampleFactor, + [in] com::sun::star::rendering::XCanvas xCanvas); + + /** Return a size that has the given aspect ratio and shares either the + width or the height with the given maximum size. + @param nSlideAspectRatio + The aspect ratio must not be 0. + @param aMaximumPreviewPixelSize + The maximum size of the returned preview size. + */ + com::sun::star::awt::Size calculatePreviewSize ( + [in] double nSlideAspectRatio, + [in] com::sun::star::awt::Size aMaximumPreviewPixelSize); +}; + +}; }; }; }; // ::com::sun::star::drawing + +#endif diff --git a/offapi/com/sun/star/drawing/XUniversalShapeDescriptor.idl b/offapi/com/sun/star/drawing/XUniversalShapeDescriptor.idl new file mode 100644 index 000000000000..60286c3271d6 --- /dev/null +++ b/offapi/com/sun/star/drawing/XUniversalShapeDescriptor.idl @@ -0,0 +1,59 @@ +/************************************************************************* + * + * 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_drawing_XUniversalShapeDescriptor_idl__ +#define __com_sun_star_drawing_XUniversalShapeDescriptor_idl__ + +#ifndef __com_sun_star_drawing_XShapeDescriptor_idl__ +#include <com/sun/star/drawing/XShapeDescriptor.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module drawing { + +//============================================================================= + +// DocMerge from xml: interface com::sun::star::drawing::XUniversalShapeDescriptor +/** @deprecated + */ +published interface XUniversalShapeDescriptor: com::sun::star::drawing::XShapeDescriptor +{ + //------------------------------------------------------------------------- + // DOCUMENTATION OMITTED FOR XUniversalShapeDescriptor::setShapeType + + // DocMerge: empty anyway + void setShapeType( [in] string aShapeTypeName ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/drawing/framework/AnchorBindingMode.idl b/offapi/com/sun/star/drawing/framework/AnchorBindingMode.idl new file mode 100644 index 000000000000..afcea77be685 --- /dev/null +++ b/offapi/com/sun/star/drawing/framework/AnchorBindingMode.idl @@ -0,0 +1,54 @@ +/************************************************************************* + * + * 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_drawing_framework_ResourceSearchMode_idl__ +#define __com_sun_star_drawing_framework_ResourceSearchMode_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif +#ifndef __com_sun_star_util_XCloneable_idl__ +#include <com/sun/star/util/XCloneable.idl> +#endif + +module com { module sun { module star { module drawing { module framework { + +/** This enum specifies how a resource is bound to an anchor. This can be + direct or indirect. + <p>Example: Let r:a1:a2 denote a resource r which is bound to + anchor a1:a2 which itself is a resource a1 bound to anchor a2. + Then r:a1:a2 is bound directly to a1:a2 and indirectly to a2.</p> +*/ +enum AnchorBindingMode +{ + DIRECT, + INDIRECT +}; + +}; }; }; }; }; // ::com::sun::star::drawing::framework + +#endif diff --git a/offapi/com/sun/star/drawing/framework/BasicPaneFactory.idl b/offapi/com/sun/star/drawing/framework/BasicPaneFactory.idl new file mode 100644 index 000000000000..2797362aade5 --- /dev/null +++ b/offapi/com/sun/star/drawing/framework/BasicPaneFactory.idl @@ -0,0 +1,62 @@ +/************************************************************************* + * + * 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_drawing_framework_BasicPaneFactory_idl__ +#define __com_sun_star_drawing_framework_BasicPaneFactory_idl__ + +#ifndef __com_sun_star_frame_XController_idl__ +#include <com/sun/star/frame/XController.idl> +#endif +#ifndef _COM_SUN_STAR_DRAWING_FRAMEWORK_XPANEFACTORY_IDL_ +#include <com/sun/star/drawing/framework/XResourceFactory.idl> +#endif + +module com { module sun { module star { module drawing { module framework { + +/** The <type>BasicPaneFactory</pane> is a resource factory that provides the + panes used by the Draw and Impress applications. + <p>This factory provides the center, left, and right pane. For the left + pane there are two URLS, <code>private:resource/floater/LeftImpressPane</code> + and <code>private:resource/floater/LeftDrawPane</code>, one for Impress, + the other for Draw. The center pane and the right pane have the URLs + <code>private:resource/floater/CenterPane</code> and + <code>private:resource/floater/RightPane</code> respectively.</p> + <p>This factory is typically created indirectly by registering it in the + configuration and have the <type>XModuleController</type> create it on + demand.</p> +*/ +service BasicPaneFactory : XResourceFactory +{ + /** Give the controller to new instances so that they have access to the + drawing framework controllers. + */ + create ([in] ::com::sun::star::frame::XController xController); +}; + +}; }; }; }; }; // ::com::sun::star::drawing::framework + +#endif diff --git a/offapi/com/sun/star/drawing/framework/BasicToolBarFactory.idl b/offapi/com/sun/star/drawing/framework/BasicToolBarFactory.idl new file mode 100644 index 000000000000..e0a1529177d1 --- /dev/null +++ b/offapi/com/sun/star/drawing/framework/BasicToolBarFactory.idl @@ -0,0 +1,65 @@ +/************************************************************************* + * + * 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_drawing_framework_BasicToolBarFactory_idl__ +#define __com_sun_star_drawing_framework_BasicToolBarFactory_idl__ + +#ifndef __com_sun_star_frame_XController_idl__ +#include <com/sun/star/frame/XController.idl> +#endif +#ifndef _COM_SUN_STAR_DRAWING_FRAMEWORK_XPANEFACTORY_IDL_ +#include <com/sun/star/drawing/framework/XResourceFactory.idl> +#endif + +module com { module sun { module star { module drawing { module framework { + +/** The <type>BasicToolBarFactory</type> is a resource factory that provides + (some of) the tool bars used by the Draw and Impress applications. + + <p>The factory recognizes the following URLs:<ul> + <li><code>private:resource/toolbar/ViewTabBar</code> for the tab bar + that allows the switching between views.</li> + </ul> + This short list marks the implementation of this service clearly as + being in transition. + </p> + + <p>This factory is typically created indirectly by registering it in the + configuration and have the <type>XModuleController</type> create it on + demand.</p> +*/ +service BasicToolBarFactory : XResourceFactory +{ + /** Give the controller to new instances so that they have access to the + drawing framework controllers. + */ + create ([in] ::com::sun::star::frame::XController xController); +}; + +}; }; }; }; }; // ::com::sun::star::drawing::framework + +#endif diff --git a/offapi/com/sun/star/drawing/framework/BasicViewFactory.idl b/offapi/com/sun/star/drawing/framework/BasicViewFactory.idl new file mode 100644 index 000000000000..ffde0f8b4cb7 --- /dev/null +++ b/offapi/com/sun/star/drawing/framework/BasicViewFactory.idl @@ -0,0 +1,67 @@ +/************************************************************************* + * + * 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_drawing_framework_BasicViewFactory_idl__ +#define __com_sun_star_drawing_framework_BasicViewFactory_idl__ + +#ifndef __com_sun_star_frame_XController_idl__ +#include <com/sun/star/frame/XController.idl> +#endif +#ifndef __com_sun_star_drawing_framework_XResourceFactory_idl__ +#include <com/sun/star/drawing/framework/XResourceFactory.idl> +#endif + +module com { module sun { module star { module drawing { module framework { + +/** The <type>BasicViewFactory</type> is a view factory that provides the + panes used by the Draw and Impress applications. + + <p>The factory recognizes the following URLs:<ul> + <li><code>private:resource/view/ImpressView</code> for the regular edit + view of the Impress application.</li> + <li><code>private:resource/view/GraphicView</code> for the regular edit + view of the Draw application.</li> + <li><code>private:resource/view/OutlineView</code> for the outline view.</li> + <li><code>private:resource/view/NotesView</code> for the notes view.</li> + <li><code>private:resource/view/HandoutView</code> for the handout view.</li> + <li><code>private:resource/view/SlideSorter</code> for the slide sorter + regardless of which pane it is used in.</li> + <li><code>private:resource/view/PresentationView</code> for the slide show.</li> + <li><code>private:resource/view/TaskPane</code> for the task pane.</li> + </ul></p> +*/ +service BasicViewFactory : XResourceFactory +{ + /** Give the controller to new instances so that they have access to the + drawing framework controllers. + */ + create ([in] ::com::sun::star::frame::XController xController); +}; + +}; }; }; }; }; // ::com::sun::star::drawing::framework + +#endif diff --git a/offapi/com/sun/star/drawing/framework/Configuration.idl b/offapi/com/sun/star/drawing/framework/Configuration.idl new file mode 100644 index 000000000000..3c070f8784a9 --- /dev/null +++ b/offapi/com/sun/star/drawing/framework/Configuration.idl @@ -0,0 +1,58 @@ +/************************************************************************* + * + * 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_drawing_framework_ConfigurationController_idl__ +#define __com_sun_star_drawing_framework_ConfigurationController_idl__ + +#ifndef __com_sun_star_drawing_framework_XConfiguration_idl__ +#include <com/sun/star/drawing/framework/XConfiguration.idl> +#endif + +module com { module sun { module star { module drawing { module framework { + +/** This service provides the means for constructing new configurations. + + <p>Most likely use is the <member + scope="XConfigurationController">restoreConfiguration()</member> + method.</p> + + @see XConfiguration + for a description of the configuration. +*/ +service Configuration + : XConfiguration +{ + /** Create an empty configuration. + <p>This should not be necessary very often. Changes to an + existing configuration are more likely.</p> + */ + create(); +}; + +}; }; }; }; }; // ::com::sun::star::drawing::framework + +#endif diff --git a/offapi/com/sun/star/drawing/framework/ConfigurationChangeEvent.idl b/offapi/com/sun/star/drawing/framework/ConfigurationChangeEvent.idl new file mode 100644 index 000000000000..f5d37a917383 --- /dev/null +++ b/offapi/com/sun/star/drawing/framework/ConfigurationChangeEvent.idl @@ -0,0 +1,87 @@ +/************************************************************************* + * + * 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_drawing_framework_ConfigurationChangeEvent_idl__ +#define __com_sun_star_drawing_framework_ConfigurationChangeEvent_idl__ + +#ifndef __com_sun_star_lang_EventObject_idl__ +#include <com/sun/star/lang/EventObject.idl> +#endif + +module com { module sun { module star { module uno { interface XInterface; }; }; }; }; + +module com { module sun { module star { module drawing { module framework { + +interface XConfiguration; +interface XConfigurationController; +interface XResourceId; + +/** Objects of this class are used for notifying changes of the + configuration. + + <p>They are broadcasted by the configuration controller + which maintains the configuration. The set of types of configuration + changes is not fixed and is not maintained or documented in one + place.</p> + + <p>The set of used members and the exact meaning of their values is not the + same for all types. Therefore, the descriptions of the members are just + general guidelines. See <type>XConfigurationController</type> for a + list of event types used by the basic drawing framework.</p> +*/ +struct ConfigurationChangeEvent + : ::com::sun::star::lang::EventObject +{ + /** The type of configuration change is a free-form string. This is the + only member that is always set. The values of the other members + depend on the configuration change type and may or may not be set. + */ + string Type; + + /** The current configuration, depending on the event type, either + before or after the change. May be an empty reference. + */ + XConfiguration Configuration; + + /** The resource id that is part of the configuration change. + */ + XResourceId ResourceId; + + /** The resource object that corresponds to the ResourceId. May + be an empty reference. + */ + com::sun::star::uno::XInterface ResourceObject; + + /** Each listener is called with exactly the <member>UserData</member> + that was given when the listener was registered. + */ + any UserData; +}; + +}; }; }; }; }; // ::com::sun::star::drawing::framework + +#endif diff --git a/offapi/com/sun/star/drawing/framework/ConfigurationController.idl b/offapi/com/sun/star/drawing/framework/ConfigurationController.idl new file mode 100644 index 000000000000..23e43ab70a0c --- /dev/null +++ b/offapi/com/sun/star/drawing/framework/ConfigurationController.idl @@ -0,0 +1,63 @@ +/************************************************************************* + * + * 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_drawing_framework_ConfigurationController_idl__ +#define __com_sun_star_drawing_framework_ConfigurationController_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif +#ifndef __com_sun_star_drawing_framework_XConfigurationController_idl__ +#include <com/sun/star/drawing/framework/XConfigurationController.idl> +#endif +#ifndef __com_sun_star_frame_XController_idl__ +#include <com/sun/star/frame/XController.idl> +#endif + +module com { module sun { module star { module drawing { module framework { + +/** See <type>XConfigurationController</type> for a description of the + configuration controller. + + <p>This service is used at the moment by the + <type>XControllerManager</type> to create a configuration controller. + This allows developers to replace the default implementation of the + configuration controller with their own. This may not be a usefull + feature. Furthermore the sub controllers may need a tighter coupling + than the interfaces allow. These are reasons for removing this service + in the future and let the controller manager create the sub controllers + directly.</p> +*/ +service ConfigurationController + : XConfigurationController +{ + create ([in] ::com::sun::star::frame::XController xController); +}; + +}; }; }; }; }; // ::com::sun::star::drawing::framework + +#endif diff --git a/offapi/com/sun/star/drawing/framework/ModuleController.idl b/offapi/com/sun/star/drawing/framework/ModuleController.idl new file mode 100644 index 000000000000..3966a6fafb60 --- /dev/null +++ b/offapi/com/sun/star/drawing/framework/ModuleController.idl @@ -0,0 +1,59 @@ +/************************************************************************* + * + * 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_drawing_framework_ModuleController_idl__ +#define __com_sun_star_drawing_framework_ModuleController_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif +#ifndef __com_sun_star_drawing_framework_XModuleController_idl__ +#include <com/sun/star/drawing/framework/XModuleController.idl> +#endif + +module com { module sun { module star { module drawing { module framework { + +/** See <type>XModuleController</type> for a description of the module + controller. + + <p>See <type>ConfigurationController</type> for a comment why this + service may be removed in the future.</p> + + <p>The <type>ModuleController</type> object for an application can be + obtained via the <type>XControllerManager</type> interface.</type> +*/ +service ModuleController : XModuleController +{ + /** Create a new instance of a <type>ModuleController</type> as sub + controller of the given <type>XController</type> object. + */ + create ([in] ::com::sun::star::frame::XController xController); +}; + +}; }; }; }; }; // ::com::sun::star::drawing::framework + +#endif diff --git a/offapi/com/sun/star/drawing/framework/ResourceActivationMode.idl b/offapi/com/sun/star/drawing/framework/ResourceActivationMode.idl new file mode 100644 index 000000000000..a62e47d01302 --- /dev/null +++ b/offapi/com/sun/star/drawing/framework/ResourceActivationMode.idl @@ -0,0 +1,54 @@ +/************************************************************************* + * + * 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_drawing_framework_ResourceActivationMode_idl__ +#define __com_sun_star_drawing_framework_ResourceActivationMode_idl__ + +module com { module sun { module star { module drawing { module framework { + +/** The ResourceActivationMode specifies, for example for the <member + scope="com::sun::star::drawing::framework" + >XConfigurationController::requestResourceActivation()</member>, + whether a requested resource is to replace an existing resource of the + same class or is to be activated additionally. +*/ +enum ResourceActivationMode +{ + /** A resource is requested in addition to already existing ones. This + is used for example for panes. + */ + ADD, + + /** A resource is requested to replace an already existing one of the + same class. This is used for example for views. + */ + REPLACE +}; + +}; }; }; }; }; // ::com::sun::star::drawing::framework + +#endif diff --git a/offapi/com/sun/star/drawing/framework/ResourceId.idl b/offapi/com/sun/star/drawing/framework/ResourceId.idl new file mode 100644 index 000000000000..635744f69246 --- /dev/null +++ b/offapi/com/sun/star/drawing/framework/ResourceId.idl @@ -0,0 +1,70 @@ +/************************************************************************* + * + * 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_drawing_framework_ResourceId_idl__ +#define __com_sun_star_drawing_framework_ResourceId_idl__ + +#ifndef __com_sun_star_drawing_framework_XResourceId_idl__ +#include <com/sun/star/drawing/framework/XResourceId.idl> +#endif + +module com { module sun { module star { module drawing { module framework { + +/** The <type>ResourceId</type> service provides several constructors for + resource ids. + <p>They mainly differe in how the anchor is specified.</p> +*/ +service ResourceId + : XResourceId +{ + /** Create an empty resource id. It does not specify a specific + resource but describes the absence of one. + */ + createEmpty (); + + /** Create a resource id that has no anchor. + <p>This constructor can be used to create resource ids for panes.</p> + */ + create ([in] string sResourceURL); + + /** Create a resource id for an anchor that is given as + <type>XResourceId</type> object. This is the mose general of the + constructor variants. + */ + createWithAnchor ([in] string sResourceURL, [in] XResourceId xAnchor); + + /** Create a resource id for a resource that is bound to an anchor that + can be specified by a single URL. + <p>This constructor can be used to create resources ids for views + where the anchor is a pane.</p> + */ + createWithAnchorURL ([in] string sResourceURL, [in] string sAnchorURL); +}; + +}; }; }; }; }; // ::com::sun::star::drawing::framework + +#endif diff --git a/offapi/com/sun/star/drawing/framework/TabBarButton.idl b/offapi/com/sun/star/drawing/framework/TabBarButton.idl new file mode 100644 index 000000000000..3ba80cefd3f8 --- /dev/null +++ b/offapi/com/sun/star/drawing/framework/TabBarButton.idl @@ -0,0 +1,64 @@ +/************************************************************************* + * + * 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_drawing_framework_TabBarButton_idl__ +#define __com_sun_star_drawing_framework_TabBarButton_idl__ + +module com { module sun { module star { module drawing { module framework { + +interface XResourceId; + +/** Descriptor of a tab bar button. Tab bar buttons are typically used to + offer the user the choice between different views to be disiplayed in + one pane. + <p>For identification only the <member>ResourceId</member> is used, so for + some methods of the <type>XTabBar</type> interface only the + <member>ResourceId</member> member is evaluated.</p> +*/ +struct TabBarButton +{ + /** This label is displayed on the UI as button text. + <p>The label is expected to be localized.</p> + */ + string ButtonLabel; + + /** The localized help text that may be displayed in a tool tip. + */ + string HelpText; + + /** <type>XResourceId</type> object of the resource that is requested to be + displayed when the tab bar button is activated. + <p>For some methods of the <type>XTabBar</type> interface only this + member is evaluated. That is because only this member is used to + identify a tab bar button.</p> + */ + XResourceId ResourceId; +}; + +}; }; }; }; }; // ::com::sun::star::drawing::framework + +#endif diff --git a/offapi/com/sun/star/drawing/framework/XConfiguration.idl b/offapi/com/sun/star/drawing/framework/XConfiguration.idl new file mode 100644 index 000000000000..e0af30491710 --- /dev/null +++ b/offapi/com/sun/star/drawing/framework/XConfiguration.idl @@ -0,0 +1,138 @@ +/************************************************************************* + * + * 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_drawing_framework_XConfiguration_idl__ +#define __com_sun_star_drawing_framework_XConfiguration_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif +#ifndef __com_sun_star_util_XCloneable_idl__ +#include <com/sun/star/util/XCloneable.idl> +#endif +#ifndef __com_sun_star_drawing_framework_AnchorBindingMode_idl__ +#include <com/sun/star/drawing/framework/AnchorBindingMode.idl> +#endif + +module com { module sun { module star { module drawing { module framework { + +interface XResourceId; + +/** A configuration describes the resources of an application like panes, + views, and tool bars and their relationships that are currently active + or are requested to be activated. Resources are specified by ResourceId + structures rather than references so that not only the current + configuration but also a requested configuration can be represented. + + <p>Direct manipulation of a configuration object is not advised with the + exception of the <type>ConfigurationController</type> and objects that + implement the <type>XConfigurationChangeRequest</type> interface.</p> + + @see XConfigurationController +*/ +interface XConfiguration + : ::com::sun::star::util::XCloneable +{ + /** Returns the list of resources that are bound directly and/or + indirectly to the given anchor. A URL filter can reduce the set of + returned resource ids. + @param xAnchorId + This anchor typically is either a pane or an empty + <type>XResourceId</type> object. An + empty reference is treated like an <type>XResourceId</type> object. + @param sURLPrefix + When a non-empty string is given then resource ids are returned + only when their resource URL matches this prefix, i.e. when it + begins with this prefix or is equal to it. Characters with + special meaning to URLs are not interpreted. In the typical + usage the prefix specifies the type of a resource. A typical + value is "private:resource/floater/", which is the prefix for + pane URLs. In a recursive search, only resource ids at the top + level are matched against this prefix. + <p>Use an empty string to prevent filtering out resource ids.</p> + @param eSearchMode + This flag defines whether to return only resources that are + directly bound to the given anchor or a recursive search is to + be made. Note that for the recursive search and an empty anchor + all resource ids are returned that belong to the configuration. + @return + The set of returned resource ids may be empty when there are no + resource ids that match all conditions. The resources in the + sequence are ordered with respect to the + XResourceId::compareTo() method. + */ + sequence<XResourceId> getResources ( + [in] XResourceId xAnchorId, + [in] string sTargetURLPrefix, + [in] AnchorBindingMode eSearchMode); + + /** <p>Returns wether the specified resource is part of the + configuration.</p> + This is independent of whether the resource does really exist and is + active, i.e. has a visible representation in the GUI. + @param xResourceId + The id of a resource. May be empty (empty reference or empty + <type>XResourceId</type> object) in which case <FALSE/> is + returned. + @return + Returns <TRUE/> when the resource is part of the configuration + and <FALSE/> when it is not. + */ + boolean hasResource ([in] XResourceId xResourceId); + + /** Add a resource to the configuration. + <p>This method should be used only by objects that implement the + <type>XConfigurationRequest</type> interface or by the configuration + controller.</p> + @param xResourceId + The resource to add to the configuration. When the specified + resource is already part of the configuration then this call is + silently ignored. + @throws IllegalArgumentException + When an empty resource id is given then an + IllegalArgumentException is thrown. + */ + void addResource ([in] XResourceId xResourceId); + + /** Remove a resource from the configuration. + <p>This method should be used only by objects that implement the + <type>XConfigurationRequest</type> interface or by the configuration + controller.</p> + @param xResourceId + The resource to remove from the configuration. When the + specified resource is not part of the configuration then this + call is silently ignored. + @throws IllegalArgumentException + When an empty resource id is given then an + IllegalArgumentException is thrown. + */ + void removeResource ([in] XResourceId xResource); +}; + +}; }; }; }; }; // ::com::sun::star::drawing::framework + +#endif diff --git a/offapi/com/sun/star/drawing/framework/XConfigurationChangeListener.idl b/offapi/com/sun/star/drawing/framework/XConfigurationChangeListener.idl new file mode 100644 index 000000000000..d487786387b5 --- /dev/null +++ b/offapi/com/sun/star/drawing/framework/XConfigurationChangeListener.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_drawing_framework_XConfigurationChangeListener_idl__ +#define __com_sun_star_drawing_framework_XConfigurationChangeListener_idl__ + +#ifndef __com_sun_star_lang_XEventListener_idl__ +#include <com/sun/star/lang/XEventListener.idl> +#endif +#ifndef __com_sun_star_drawing_framework_ConfigurationChangeEvent_idl__ +#include <com/sun/star/drawing/framework/ConfigurationChangeEvent.idl> +#endif + +module com { module sun { module star { module drawing { module framework { + +/** A listener for configuration changes is called when it has been + registered at the configuration controller and a configuration change + occurs. +*/ +interface XConfigurationChangeListener + : ::com::sun::star::lang::XEventListener +{ + /** The exact time of when a listener is called (before the change takes + place, during the change, or when the change has been made) depends + on the change event. The order in which listeners are called is the + order in which they are registered (First registered, first called.) + */ + void notifyConfigurationChange ([in] ConfigurationChangeEvent aEvent); +}; + +}; }; }; }; }; // ::com::sun::star::drawing::framework + +#endif diff --git a/offapi/com/sun/star/drawing/framework/XConfigurationChangeRequest.idl b/offapi/com/sun/star/drawing/framework/XConfigurationChangeRequest.idl new file mode 100644 index 000000000000..8fff19cd27ad --- /dev/null +++ b/offapi/com/sun/star/drawing/framework/XConfigurationChangeRequest.idl @@ -0,0 +1,68 @@ +/************************************************************************* + * + * 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_drawing_framework_XConfigurationChangeRequest_idl__ +#define __com_sun_star_drawing_framework_XConfigurationChangeRequest_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif +#ifndef __com_sun_star_drawing_framework_ConfigurationChangeEvent_idl__ +#include <com/sun/star/drawing/framework/ConfigurationChangeEvent.idl> +#endif + +module com { module sun { module star { module drawing { module framework { + +interface XConfiguration; + +/** A single explicit request for a configuration change. + + <p>The requested change is committed to a configuration only when the + <member>execute()</member> method is called. Configuration change + requests are executed asynchronously. This is done to avoid reentrance + problems with objects that are registered as + <type>XConfigurationChangeListener</type> and at the same time make + configuration change requests. When the requests were executed + synchronously then the listeners would be notified of the changes while + their request call has not yet returned.</p> + + <p>This interface is typically used internally by the + <type>XConfigurationController</type></p> @see XConfigurationController +*/ +interface XConfigurationChangeRequest +{ + /** Commit the configuration change request represented by the called + object to the given configuration. + @param xConfiguration + This is the configuration to commit the requested change to. + */ + void execute ([in] XConfiguration xConfiguration); +}; + +}; }; }; }; }; // ::com::sun::star::drawing::framework + +#endif diff --git a/offapi/com/sun/star/drawing/framework/XConfigurationController.idl b/offapi/com/sun/star/drawing/framework/XConfigurationController.idl new file mode 100644 index 000000000000..f7d01faf44db --- /dev/null +++ b/offapi/com/sun/star/drawing/framework/XConfigurationController.idl @@ -0,0 +1,272 @@ +/************************************************************************* + * + * 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_drawing_framework_XConfigurationController_idl__ +#define __com_sun_star_drawing_framework_XConfigurationController_idl__ + +#ifndef __com_sun_star_drawing_framework_ConfigurationChangeEvent_idl__ +#include <com/sun/star/drawing/framework/ConfigurationChangeEvent.idl> +#endif +#ifndef __com_sun_star_drawing_framework_XConfigurationControllerBroadcaster_idl__ +#include <com/sun/star/drawing/framework/XConfigurationControllerBroadcaster.idl> +#endif +#ifndef __com_sun_star_drawing_framework_XConfigurationControllerRequestQueue_idl__ +#include <com/sun/star/drawing/framework/XConfigurationControllerRequestQueue.idl> +#endif +#ifndef __com_sun_star_drawing_framework_XResourceFactoryManager_idl__ +#include <com/sun/star/drawing/framework/XResourceFactoryManager.idl> +#endif +#ifndef __com_sun_star_drawing_framework_ResourceActivationMode_idl__ +#include <com/sun/star/drawing/framework/ResourceActivationMode.idl> +#endif + +module com { module sun { module star { module drawing { module framework { + +interface XConfigurationChangeListener; +interface XConfigurationChangeRequest; +interface XResourceId; +interface XResource; + +/** The configuration controller is responsible for the management of the + set of active resources. + + <p>There are two configurations of resources:<ul> + <li>The current configuration contains the set of currently active + resources.</li> + <li>The requested configuration describes what the current configuration + should be. The requested configuration is changed usually by calling + <member>requestResourceActivation()</member> and + <member>requestResourceDeactivation()</member>.</li> + </ul></p> + + <p>When the two configurations differ then the current configuration is + updated eventually to reflect the requested configuration. An update + takes place when the following three conditions are fullfilled. + <ol> + <li>when the last pending request for configuration changes has been + processed,</li> + <li>when the <member>update()</member> method is called.</li> + <li>when the configuration manager it is unlocked after formerly being + locked.</li> + </ol></p> + + <p>Requests for configuration changes are handled in a two step process: + <ol> + <li>First the requested configuration is updated iteratively: Every + request that is being made by calling + <member>requestResourceActivation()</member> or + <member>requestResourceDeactivation()</member> results in one or more + function objects, that each implement the + <type>XConfigurationChangeRequest</type> interface. These are inserted + into a queue. The request objects in the queue are processed + asynchronously one at a time in the order in which they are inserted. + Only when one request object is processed a change to the requested + configuration is made. These changes are broadcasted to registered + <type>XConfigurationChangeListener</type> objects. Listeners may + decide to make requests that then are added to the queue. For example + when the view in the center pane is replaced by another view, some + listeners may want to turn some side panes on or off, or show other + views in the side panes.</p> + <p>This process goes on until the queue of request objects becomes + empty. Until this point only the requested configuration has been + modified. No resources have been activated or deactivated.</p></li> + + <li><p>The second update step activates or deactivates resources so that + the current configuration (the one that comprises the actually active + resources) reflects the requested configuration.</p> + <p>The order in which resources are activated or deactivated depends on + the dependency between the resources. For example a view depends on the + pane it is displayed in. Resources that other resources depend on are + activated first and deactivated last. The order is undefined for + unrelated resources.</p> + <p>Note that the second update step may not be able to activate (or even to + deactivate) all the requested resources. Either because they are + temporarily or permanently unavailable. For example, during the + start-up of a new Impress application the side panes are displayed + with a visible delay because they are not provided sooner by the + underlying framework. Such anavailable resources are not forgotten but + remain in the requested configuration. Every time the configuration + controller updates its current configuration these resources are + requested once more.</li></ol></p> + + <p>The configuration controller sends the following events: + <ul> + <li><const>ResourceActivationRequested</const> is sent when the + activation of a resource has been requested and the resource is not yet + active in the requested configuration. The event is sent when the + configuration change request is executed, not when the + <member>requestResourceActivation()</member> call is made.</p> + <p>The <member scope="ConfigurationChangeEvent">ResourceId</member> member is set to the requested + resource. The <member>ResourceObject</member> member is not + set.</p></li> + <li><const>ResourceDeactivationRequested</const> is sent when the + deactivation of a resource has been requested and the resource is active + in the requested configuration. The event is sent when the + configuration change request is executed that is created when for + example <member>requestResourceDeactivation()</member> is called.</p> + <p>The <member>ResourceId</member> member is set to the requested + resource. The <member>ResourceObject</member> member is not + set.</p></li> + <li><const>ConfigurationUpdateStart</const> is sent before the update of + the current configuration starts.</p> + <p>The requested configuration is available in the <member + scope="ConfigurationChangeEvent">Configuration</member> member. The + <member>ResourceId</member> and <member>ResourceObject</member> members + are not set.</p></li> + <li><const>ConfigurationUpdateEnd</const> is sent after the update of + the current configuration ends.</p> + <p>The requested configuration is + available in the <member scope="ConfigurationChangeEvent" + >Configuration</member> member. The <member>ResourceId</member> and + <member>ResourceObject</member> members are not set.</p></li> + <li><const>ResourceActivation</const> is sent when a resource is + activated, i.e. when a new object of a resource is created (or taken + from a cash).</p> + <p>The <member>ResourceId</member> and <member>ResourceObject</member> + members are set to the <type>XResourceId</type> and object reference of + the activated resource.</p></li> + <li><const>ResourceDeactivation</const> is sent when a resource is + deactivated, i.e. when an object that previously was part of the + configuration is removed from the configuration.</p> + <p>The <member>ResourceId</member> and <member>ResourceObject</member> + members are set to <type>XResourceId</type> and object reference of the + deactivated resource.</p></li> + </ul></p> +*/ +interface XConfigurationController +{ + interface XConfigurationControllerRequestQueue; + interface XConfigurationControllerBroadcaster; + interface XResourceFactoryManager; + + /** Request the activation of a resource. + <p>The request is processed asynchronously. Notifications about + configuration changes are sent after this call returns.</p> + @param xResourceId + The resource whose activation is requested. + @param eMode + <p>When eMode is <const>REPLACE</const> then, before adding the + resource activation to the request queue, similar resources + linked to the same anchor are removed. This makes it easer to + switch between resources whose activation is mutually exclusive. + For example, there can only be one view per pane, so before + activating a new view the old one has to be deactivated.</p> + <p>When eMode is <const>ADD</const> then the resource is requested + without further changes.</p> + */ + void requestResourceActivation ( + [in] XResourceId xResourceId, + [in] ResourceActivationMode eMode); + + /** Request the deactivation of a resource. + <p>The request is processed asynchronously. Notifications about + configuration changes are sent after this call returns.</p> + <p>Requesting the deactivation + of a resource that is not active is not an error.</p> + @param xResourceId + The resource whose deactivation is requested. + */ + void requestResourceDeactivation ( + [in] XResourceId xResourceId); + + + /** Return the active resource specified by the given resource id. + @param xResourceId + A valid resource id. This should, but does not have to be, the + resource id of an active resource. + @return + When the given resource id specifies an active resource then + that resource is returned. Otherwise an empty reference is + returned. + */ + XResource getResource ( + [in] XResourceId xResourceId); + + /** Lock the processing of configuration change requests. + <p>This is only necessary when more than one change request is being + made in a row. It prevents an update being made (with all the visible UI + changes) before all change requests are being made.</p> + <p>Recursive <member>lock()</member> calls are recognized: the + configuration controller is locked while <member>lock()</member> was + called more often than <member>unlock()</member>.</p> + */ + void lock (); + + /** Unlock the processing of configuration change requests. + <p>When <member>unlock()</member> is called as many times as + <member>lock()</member> and the queue of configuration change + requests is not empty the configuration controller continues the + processing of the change requests. An update of the current + configuration will eventually being made.</p> + */ + void unlock (); + + /** Explicitly request an update of the current configuration. + <p>Call it when a resource is activated or deactivated + without the control and knowledge of the drawing framework. Calling + this method (from outside the drawing framework) should hardly every + be necessary.</p> + */ + void update (); + + /** Return a copy of the requested configuration. + <p>Modifications to the returned configuration have no effect on the + drawing framework.</p> + */ + XConfiguration getRequestedConfiguration (); + + /** Return a copy of the current configuration. + <p>Modifications to the returned configuration have no effect on the + drawing framework.</p> + */ + XConfiguration getCurrentConfiguration (); + + /** Replace the requested configuration with the given configuration and + schedule an update of the current configuration. + <p>Together with the <member>getCurrentConfiguration()</member> and + <member>getRequestedConfiguration()</member> methods this + allows the saving and restoring of configurations. However, the + given configuration can have other origins then these methods.</p> + <p>The given configuration is transformed into a list of of change + requests so that the resulting reqeusted configuration equals the + given configuration. This has the advantage that not only the + resource activations and deactivations but all configuration + changes are properly broadcasted.</p> + <p>Note that because of the configuration change notifications + listeners can make more configuratio change requests, so that the + resulting requested configuration can be different from the given + configuration.</p> + @param xConfiguration + This typically is a configuration that was obtained with an + earlier <member>getRequestedConfiguration()</member> call. + */ + void restoreConfiguration ([in] XConfiguration xConfiguration); +}; + +}; }; }; }; }; // ::com::sun::star::drawing::framework + +#endif diff --git a/offapi/com/sun/star/drawing/framework/XConfigurationControllerBroadcaster.idl b/offapi/com/sun/star/drawing/framework/XConfigurationControllerBroadcaster.idl new file mode 100644 index 000000000000..6da775a13fea --- /dev/null +++ b/offapi/com/sun/star/drawing/framework/XConfigurationControllerBroadcaster.idl @@ -0,0 +1,91 @@ +/************************************************************************* + * + * 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_drawing_framework_XConfigurationControllerBroadcaster_idl__ +#define __com_sun_star_drawing_framework_XConfigurationControllerBroadcaster_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif +#ifndef __com_sun_star_drawing_framework_ConfigurationChangeEvent_idl__ +#include <com/sun/star/drawing/framework/ConfigurationChangeEvent.idl> +#endif + +module com { module sun { module star { module drawing { module framework { + +interface XConfigurationChangeListener; + +/** Manage the set of registered event listeners and the event notification for a configuration + controller. + <p>The listeners are called in the order in which they are registered.</p> +*/ +interface XConfigurationControllerBroadcaster +{ + /** Add a new listener for configuration changes. + <p>The listener is notified only for the specified type of + configuration changes. When the listener is interested in more than + one event type this method has to be called multiple times. + Alternatively it can register as universal listener that will be + called for all event types. However, this option is provided + primarily to support debugging and monitoring.</p> + @param xListener + The new listener. + @param sEventType + The event type that the listener is interested in. The set of + event types is not fixed and there can be no exhaustive + list. The empty string is a special value in that the listener + will be called for all types of event. + @param aUserData + Arbitrary data that is passed to the listener when it is called + for the specified event type. When one listener is regisered + for more than one event type then different user data objects + may be given as well. Supplying unique integer values allows + the listener to use a switch statement to distinguish between + the different event types. + */ + void addConfigurationChangeListener ( + [in] XConfigurationChangeListener xListener, + [in] string sEventType, + [in] any aUserData); + + /** Remove a listener for configuration changes. + @param xListener + The listener that is to be removed. + */ + void removeConfigurationChangeListener ( + [in] XConfigurationChangeListener xListener); + + /** With this method other objects can send events to all the registered + listeners. + */ + void notifyEvent ( + [in] ConfigurationChangeEvent aEvent); +}; + +}; }; }; }; }; // ::com::sun::star::drawing::framework + +#endif diff --git a/offapi/com/sun/star/drawing/framework/XConfigurationControllerRequestQueue.idl b/offapi/com/sun/star/drawing/framework/XConfigurationControllerRequestQueue.idl new file mode 100644 index 000000000000..ebd171cb4f23 --- /dev/null +++ b/offapi/com/sun/star/drawing/framework/XConfigurationControllerRequestQueue.idl @@ -0,0 +1,77 @@ +/************************************************************************* + * + * 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_drawing_framework_XConfigurationControllerRequestQueue_idl__ +#define __com_sun_star_drawing_framework_XConfigurationControllerRequestQueue_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +module com { module sun { module star { module drawing { module framework { + +interface XConfigurationChangeRequest; + +/** The request queue of the configuration controller handles requests for + changes to the current configuration. + + <p>This interface allows callers to add requests to the back of the + queue and to determine wheter the queue is empty. Using this interace + should normally not be necessary for anyone else than the + <type>XConfigurationController</type>. It may be removed in the future.</p> +*/ +interface XConfigurationControllerRequestQueue +{ + /** Return whether there are pending requests for configuration changes. + @return + Returns <TRUE/> when there is at least one request object in the + queue that has not yet been processed. It returns <FALSE/> when + the queue is empty. + */ + boolean hasPendingRequests (); + + /** Add a request for a configuration change to the request queue. + <p>This method should not be called from outside the drawing + famework. Other sub conrollers of the drawing framework are typical + callers. They can add change requests that can not be made with the + <member>requestResourceActivation()</member> and + <member>requestResourceDeactivation()</member> methods.</p> + @param xRequest + The configuration change represented by this request object must only + be commited to the configuration when the + <member + scope="com::sun::star::drawing::framework::XConfigurationChangeRequest" + >execute()</member> + method of the xRequest object is called. + */ + void postChangeRequest ( + [in] XConfigurationChangeRequest xRequest); +}; + +}; }; }; }; }; // ::com::sun::star::drawing::framework + +#endif diff --git a/offapi/com/sun/star/drawing/framework/XControllerManager.idl b/offapi/com/sun/star/drawing/framework/XControllerManager.idl new file mode 100644 index 000000000000..fba9b5f920ca --- /dev/null +++ b/offapi/com/sun/star/drawing/framework/XControllerManager.idl @@ -0,0 +1,63 @@ +/************************************************************************* + * + * 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_drawing_framework_XControllerManager_idl__ +#define __com_sun_star_drawing_framework_XControllerManager_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +module com { module sun { module star { module drawing { module framework { + +interface XConfigurationController; +interface XModuleController; + +/** The XControllerManager gives access to the controllers of the drawing + framework. + <p>The <type>XControllerManager</type> interface is typically + implemented by the same object that implements <type + scope="com::sun::star::frame">XController</type>.</p> +*/ +interface XControllerManager +{ + /** Return the <type>XConfigurationController</type> object. + @return + The returned reference is never empty. + */ + XConfigurationController getConfigurationController (); + + /** Return the <type>XModuleController</type> object. + @return + The returned reference is never empty. + */ + XModuleController getModuleController (); +}; + +}; }; }; }; }; // ::com::sun::star::drawing::framework + +#endif diff --git a/offapi/com/sun/star/drawing/framework/XModuleController.idl b/offapi/com/sun/star/drawing/framework/XModuleController.idl new file mode 100644 index 000000000000..b115f955fac0 --- /dev/null +++ b/offapi/com/sun/star/drawing/framework/XModuleController.idl @@ -0,0 +1,67 @@ +/************************************************************************* + * + * 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_drawing_framework_XModuleController_idl__ +#define __com_sun_star_drawing_framework_XModuleController_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif +#ifndef __com_sun_star_awt_XWindow_idl__ +#include <com/sun/star/awt/XWindow.idl> +#endif +#ifndef _COM_SUN_STAR_FRAME_XCONTROLLER_IDL_ +#include <com/sun/star/frame/XController.idl> +#endif +#ifndef __com_sun_star_drawing_framework_ResourceId_idl__ +#include <com/sun/star/drawing/framework/ResourceId.idl> +#endif + +module com { module sun { module star { module drawing { module framework { + +interface XView; + +/** The module controller is responsible for loading a module (addon, + plugin, whatever the name) when it is first used. + <p>For this there is a + list in the office configuration which associates resource URLs with + service names which in turn are associated with modules (or dlls). The + path to the office configuration list is + <const>MultiPaneGUI/Framework/ResourceFactories</const> in the + Impress.xcu file.</p> +*/ +interface XModuleController +{ + /** When the specified resource is requested for the first time then + create a new instance of the associated factory service. + */ + void requestResource ([in] string sResourceTypeURL); +}; + +}; }; }; }; }; // ::com::sun::star::drawing::framework + +#endif diff --git a/offapi/com/sun/star/drawing/framework/XPane.idl b/offapi/com/sun/star/drawing/framework/XPane.idl new file mode 100644 index 000000000000..ad0bc7dbb791 --- /dev/null +++ b/offapi/com/sun/star/drawing/framework/XPane.idl @@ -0,0 +1,75 @@ +/************************************************************************* + * + * 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_drawing_framework_XPane_idl__ +#define __com_sun_star_drawing_framework_XPane_idl__ + +#ifndef __com_sun_star_awt_XWindow_idl__ +#include <com/sun/star/awt/XWindow.idl> +#endif +#ifndef __com_sun_star_rendering_XCcanvas_idl__ +#include <com/sun/star/rendering/XCanvas.idl> +#endif +#ifndef __com_sun_star_drawing_framework_XResource_idl__ +#include <com/sun/star/drawing/framework/XResource.idl> +#endif +#ifndef __com_sun_star_drawing_framework_XRelocatableResource_idl__ +#include <com/sun/star/drawing/framework/XRelocatableResource.idl> +#endif + +module com { module sun { module star { module drawing { module framework { + +/** A pane is an abstraction of a window and is one of the resources managed + by the drawing framework. + <p>Apart from the area that displays a view a pane may contain other + parts like title, menu, closer button.</p> + <p>The URL prefix of panes is <code>private:resource/floater</code></p> +*/ +interface XPane +{ + interface XResource; + + /** Return the <type scope="com::sun::star::awt">XWindow</type> of the + pane that is used to display a view. + */ + ::com::sun::star::awt::XWindow getWindow (); + + /** Return the <type scope="com::sun::star::awt">XCanvas</type> of the pane. The + <type scope="com::sun::star::rendering">XCanvas</type> object is expected to + be associated with the <type + scope="com::sun::star::awt">XWindow</type> object returned by + <member>getWindow()</member>. + @return + When the <type scope="com::sun::star::rendering">XCanvas</type> + interface is not supported then an empty reference is returned. + */ + ::com::sun::star::rendering::XCanvas getCanvas (); +}; + +}; }; }; }; }; // ::com::sun::star::drawing::framework + +#endif diff --git a/offapi/com/sun/star/drawing/framework/XPane2.idl b/offapi/com/sun/star/drawing/framework/XPane2.idl new file mode 100644 index 000000000000..85fec5a311cb --- /dev/null +++ b/offapi/com/sun/star/drawing/framework/XPane2.idl @@ -0,0 +1,76 @@ +/************************************************************************* + * + * 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_drawing_framework_XPane2_idl__ +#define __com_sun_star_drawing_framework_XPane2_idl__ + +#ifndef __com_sun_star_accessibility_XAccessible_idl__ +#include <com/sun/star/accessibility/XAccessible.idl> +#endif + +module com { module sun { module star { module drawing { module framework { + +/** An extension of the XPane interface that adds support for + a) showing and hiding the windows that internally belong to the pane and + b) setting the accessibility object. + This is typically an optional interface. +*/ +interface XPane2 +{ + /** Return whether all windows that are used to implement the pane are + visible. + @Returns <TRUE> when all windows of the pane are visible. + */ + boolean isVisible (); + + /** Hide or show the pane. If there is more than one window used to + implement the pane then it is left to the implementation if one, + some, or all windows are hidden or shown as long as the pane becomes + hidden or visible. + @param bIsVisible + When <TRUE> then show the pane. Hide it otherwise. + */ + void setVisible ([in] boolean bIsVisible); + + /** Set the accessibility object for the pane. When there is more than + one window used to implement the pane then the given accessibility + object is usually set at the topmost window. However, the details + are implementation dependent. + @param xAccessible + May be an empty reference. + */ + void setAccessible ([in] ::com::sun::star::accessibility::XAccessible xAccessible); + + /** Return the accessibility object that is currently associated with + the windows that implement the pane. + */ + ::com::sun::star::accessibility::XAccessible getAccessible (); +}; + +}; }; }; }; }; // ::com::sun::star::drawing::framework + +#endif diff --git a/offapi/com/sun/star/drawing/framework/XPaneBorderPainter.idl b/offapi/com/sun/star/drawing/framework/XPaneBorderPainter.idl new file mode 100644 index 000000000000..e9d875897a40 --- /dev/null +++ b/offapi/com/sun/star/drawing/framework/XPaneBorderPainter.idl @@ -0,0 +1,161 @@ +/************************************************************************* + * + * 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_drawing_framework_XPaneBorderPainter_idl__ +#define __com_sun_star_drawing_framework_XPaneBorderPainter_idl__ + +#ifndef __com_sun_star_awt_Rectangle_idl__ +#include <com/sun/star/awt/Rectangle.idl> +#endif +#ifndef __com_sun_star_awt_Point_idl__ +#include <com/sun/star/awt/Point.idl> +#endif +#ifndef __com_sun_star_rendering_XCanvas_idl__ +#include <com/sun/star/rendering/XCanvas.idl> +#endif + +module com { module sun { module star { module drawing { module framework { + +/** See XPaneBorderPainter and its addBorder() and removeBorder() methods + for an explanation of the border type and its values. +*/ +enum BorderType +{ + INNER_BORDER, + OUTER_BORDER, + TOTAL_BORDER +}; + + +/** Paint the border around a rectangular region, typically a pane. + + <p>Calling objects have to be able to derive inner bounding boxs of the + border from the outer ones and inner ones from outer ones. This + conversion and the painting of the border involves three rectangles. + The inner and outer bounding box of the border. This is a logical + bounding box which the paint methods may paint over. The center box is + the third rectangle. This is the actual border between outer and inner + background color or bitmap and it is used for placing the bitmaps that are used + paint the border. The inner sides and corners are places relative to + this center box, i.e. when not further offsets are given then the upper + left corner bitmap is painted with its lower right at the upper left of + the center box.</p> +*/ +interface XPaneBorderPainter +{ + /** Enlarge the given rectangle by the size of the specified part of the + border. This method can be used to convert an inner bounding box + into the center box or the outer bounding box. + @param sPaneBorderStyleName + The pane style defines the sizes of the border. + @param aRectangle + This rectangle will be converted into a larger one. This should + be the center box or the inner bounding box of the border. + @param eBorderType + The part of the border to add to the given rectangle. + Use INNER_BORDER to convert an inner bounding box into the + center box or TOTAL_BORDER to convert it into the outer bounding + box. OUTER_BORDER can be used to convert the center box into + the outer bounding box. + */ + ::com::sun::star::awt::Rectangle addBorder ( + [in] string sPaneBorderStyleName, + [in] ::com::sun::star::awt::Rectangle aRectangle, + [in] BorderType eBorderType); + + /** Shring the given rectangle by the size of the specified part of the + border. This method can be used to convert an outer bounding box + into the center box or the inner bounding box. + @param sPaneBorderStyleName + The pane style defines the sizes of the border. + @param aRectangle + This rectangle will be converted into a smaller one that lies + inside it. It should be the center box or the outer bounding + box of the border. + @param eBorderType + The part of the border to remove from the given rectangle. + Use OUTER_BORDER to convert an outer bounding box into the + center box or TOTAL_BORDER to convert it into the inner bounding + box. INNER_BORDER can be used to convert the center box into + the inner bounding box. + */ + ::com::sun::star::awt::Rectangle removeBorder ( + [in] string sPaneBorderStyleName, + [in] ::com::sun::star::awt::Rectangle aRectangle, + [in] BorderType eBorderType); + + /** Paint the border around a pane. + @param sPaneBorderStyleName + The pane style to use for painting the border. + @param xCanvas + The canvas onto which the border is painted. + @param aOuterBorderRectangle + The outer bounding box of the border. Use addBorder to convert + the bounding box of a pane (the inner bounding box of the + border) into this outer bounding box of the border. + @param aRepaintArea + The area in which the border has to be repainted. The clip + rectangle. + @param sTitle + The pane title. Supply an empty string for panes without + title. It is the responsibility of the caller to supply a title + only for pane border styles that support a title. + */ + void paintBorder ( + [in] string sPaneBorderStyleName, + [in] ::com::sun::star::rendering::XCanvas xCanvas, + [in] ::com::sun::star::awt::Rectangle aOuterBorderRectangle, + [in] ::com::sun::star::awt::Rectangle aRepaintArea, + [in] string sTitle); + + /** Paint the border around a pane where the border includes a callout + that is anchored at the given point. Most arguments have the same + meaning as in the <method>paintBorder</method>. + @param aCalloutAnchor + The anchor point of the callout. It is usually located outside + the border. + */ + void paintBorderWithCallout ( + [in] string sPaneBorderStyleName, + [in] ::com::sun::star::rendering::XCanvas xCanvas, + [in] ::com::sun::star::awt::Rectangle aOuterBorderRectangle, + [in] ::com::sun::star::awt::Rectangle aRepaintArea, + [in] string sTitle, + [in] ::com::sun::star::awt::Point aCalloutAnchor); + + /** Return the offset of a callout anchor with respect to the outer + border. This value is used when the callout is realized by a fixed + bitmap in order to determine the size and/or location of the outer + border for a given callout. + */ + ::com::sun::star::awt::Point getCalloutOffset ( + [in] string sPaneBorderStyleName); +}; + +}; }; }; }; }; // ::com::sun::star::drawing::framework + +#endif diff --git a/offapi/com/sun/star/drawing/framework/XRelocatableResource.idl b/offapi/com/sun/star/drawing/framework/XRelocatableResource.idl new file mode 100644 index 000000000000..9c8af5a15620 --- /dev/null +++ b/offapi/com/sun/star/drawing/framework/XRelocatableResource.idl @@ -0,0 +1,56 @@ +/************************************************************************* + * + * 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_drawing_framework_XRelocatableResource_idl__ +#define __com_sun_star_drawing_framework_XRelocatableResource_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +module com { module sun { module star { module drawing { module framework { + +interface XResource; + +/** An optional interface that is implemented by resources that are + relocatable to different anchors. +*/ +interface XRelocatableResource +{ + /** Replace the current anchor of the called resource with the given + one. + @param xNewAnchor + The new anchor. + @return + Returns <TRUE/> when the relocation was successfull. + */ + boolean relocateToAnchor ([in] XResource xNewAnchor); +}; + +}; }; }; }; }; // ::com::sun::star::drawing::framework + +#endif diff --git a/offapi/com/sun/star/drawing/framework/XResource.idl b/offapi/com/sun/star/drawing/framework/XResource.idl new file mode 100644 index 000000000000..c0dbbe95141d --- /dev/null +++ b/offapi/com/sun/star/drawing/framework/XResource.idl @@ -0,0 +1,63 @@ +/************************************************************************* + * + * 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_drawing_framework_XResource_idl__ +#define __com_sun_star_drawing_framework_XResource_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +module com { module sun { module star { module drawing { module framework { + +interface XResourceId; + +/** Base interface that provides functionality shared by all resource types + of the drawing framework. +*/ +interface XResource +{ + /** Return an <type>XResourceId</type> object for the called resource. + The returned id unambiguously indentifies the resource. + */ + XResourceId getResourceId (); + + /** Some resources must not be leafs, i.e. have to be anchor to at least + one other resource. Most panes are examples for this. Views on the + other hand are in most cases no anchors. So the typical pane will + return <TRUE/> and the typical view will return <FALSE/>. + + The return value is used to determine whether a resource has to be + deactivated when it has no children, either because none is + requested or because none can be created. + */ + boolean isAnchorOnly (); +}; + +}; }; }; }; }; // ::com::sun::star::drawing::framework + +#endif diff --git a/offapi/com/sun/star/drawing/framework/XResourceFactory.idl b/offapi/com/sun/star/drawing/framework/XResourceFactory.idl new file mode 100644 index 000000000000..4bb8b09bc8ad --- /dev/null +++ b/offapi/com/sun/star/drawing/framework/XResourceFactory.idl @@ -0,0 +1,92 @@ +/************************************************************************* + * + * 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_drawing_framework_XResourceFactory_idl__ +#define __com_sun_star_drawing_framework_XResourceFactory_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif +#ifndef __com_sun_star_lang_IllegalArgumentException_idl__ +#include <com/sun/star/lang/IllegalArgumentException.idl> +#endif +#ifndef __com_sun_star_lang_WrappedTargetException_idl__ +#include <com/sun/star/lang/WrappedTargetException.idl> +#endif + +module com { module sun { module star { module drawing { module framework { + +interface XResource; +interface XResourceId; + +/** Factory and possibly cache for creating and releasing resources. + <p>A resource factory is created and used by the + <type>XConfigurationController</type> object.</p> + <p>A factory may want to implement a cache to reuse previously released + resources.</p> +*/ +interface XResourceFactory +{ + /** Create a resource for the given <type>XResourceId</type> object. + @param xResourceId + The resourc URL of this id specifies the type of resource to + create. The anchor can be used to obtain the associated object + from the configuration controller. For example, when a view is + created, then the new object can be initialized with the pane + that is its anchor. + <p>Valid values are those for which the factory has previously been + registered at the <type>XConfigurationController</type></p>. + @return + Returns a resource object that has been just created or was + taken from a cache. When the requested resource can not be + created then an empty reference is returned. A later call may + be successfull. This, for example, can be the case with SFX + based side panes. They are not available right after the + creation of a new application frame. + @throws InvalidArgumentException + when the given URL is not supported by the factory. + */ + XResource createResource ( + [in] XResourceId xResourceId) + raises ( ::com::sun::star::lang::IllegalArgumentException, + ::com::sun::star::lang::WrappedTargetException + ); + + /** Call this method to tell a factory that the given resource is no + longer in use. The factory can decide whether to destroy the + resource or to keep it in a cache in order to reuse it later. + @param xResource + The given resource has to be one created by the same factory. + @throws InvalidArgumentException + when the given pane was not created by the same factory. + */ + void releaseResource ([in] XResource xResource); +}; + +}; }; }; }; }; // ::com::sun::star::drawing::framework + +#endif diff --git a/offapi/com/sun/star/drawing/framework/XResourceFactoryManager.idl b/offapi/com/sun/star/drawing/framework/XResourceFactoryManager.idl new file mode 100644 index 000000000000..1926c38c2774 --- /dev/null +++ b/offapi/com/sun/star/drawing/framework/XResourceFactoryManager.idl @@ -0,0 +1,98 @@ +/************************************************************************* + * + * 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_drawing_framework_XResourceFactoryManager_idl__ +#define __com_sun_star_drawing_framework_XResourceFactoryManager_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +module com { module sun { module star { module drawing { module framework { + +interface XResourceId; +interface XResourceFactory; + +/** The XResourceFactoryManager is part of the configuration controller and + manages the set of registered resource factories. + + @see XConfigurationController + @see XResourceFactory +*/ +interface XResourceFactoryManager +{ + /** Register a new resource factory for the given URL. + <p>When one factory is responsible for more than one type of resource + then this method has to be called for each type. If this method is + called multiple times for the same URL then a previously registered + factory is removed for the URL.</p> + @param sResourceURL + The URL of the resource that the factory can create. + @param xResourceFactory + The resource factory object. + */ + void addResourceFactory ( + [in] string sResourceURL, + [in] XResourceFactory xResourceFactory); + + /** Remove a resource factory for one type of resource. When the + factory has been registered for other URLs as well then it remains + registered for them. Use the + <member>removeResourceFactoryForReference()</member> to remove a + factory completely. + @param sResourceURL + The URL for which to remove the resource factory. + */ + void removeResourceFactoryForURL ( + [in] string sResourceURL); + + /** Remove a resource factory for all resource types it has been registered for. Use + <member>removeResourceFactoryForURL</member> to remove a factory + just for one resource type and to leave it registered for others. + @param xResourceFactory + The resource factory object to remove. + */ + void removeResourceFactoryForReference ( + [in] XResourceFactory xResourceFactory); + + /** Return the resource factory that was previously registered for the + given resource type. This method is typically called by one of the + resource controllers. + @param sResourceURL + The URL of the resource type for which to return the resource + factory. + @return + When no resource factory was registered for the given resource + type then an empty reference is returned. + */ + XResourceFactory getResourceFactory ( + [in] string sResourceURL); +}; + +}; }; }; }; }; // ::com::sun::star::drawing::framework + +#endif diff --git a/offapi/com/sun/star/drawing/framework/XResourceId.idl b/offapi/com/sun/star/drawing/framework/XResourceId.idl new file mode 100644 index 000000000000..6d24fbed092f --- /dev/null +++ b/offapi/com/sun/star/drawing/framework/XResourceId.idl @@ -0,0 +1,157 @@ +/************************************************************************* + * + * 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_drawing_framework_XResourceId_idl__ +#define __com_sun_star_drawing_framework_XResourceId_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif +#ifndef __com_sun_star_drawing_framework_AnchorBindingMode_idl__ +#include <com/sun/star/drawing/framework/AnchorBindingMode.idl> +#endif +#ifndef __com_sun_star_util_URL_idl__ +#include <com/sun/star/util/URL.idl> +#endif + +module com { module sun { module star { module drawing { module framework { + +/** A resource id uses a set of URLs to unambiguously specify a resource of + the drawing framework. + <p>Resources of the drawing framework are panes, views, tool bars, and + command groups. One URL describes the type of the actual resource. A + sequence of URLs (typically one, sometimes two) specifies its anchor, + the resource it is bound to. The anchor typically is a pane (for + views), or it is empty (for panes).</p> + <p>The resource URL may be empty. In this case the anchor is empty, + too. Such an empty resource id does not describe a resource but rather + the absence of one. Instead of an empty <type>XResourceId</type> object + an empty reference can be used in many places.</p> + <p>The resource URL may have arguments that are passed to the factory + method on its creation. Arguments are only available through the + getFullResourceURL(). The getResourceURL() method strips them away.</p> +*/ +interface XResourceId +{ + /** Return the URL of the resource. Arguments supplied on creation are + stripped away. Use getFullResourceURL() to access them. + */ + string getResourceURL (); + + /** Return an URL object of the resource URL that may contain arguments. + */ + com::sun::star::util::URL getFullResourceURL (); + + /** Return whether there is a non-empty anchor URL. When this method + returns <FALSE/> then getAnchorURLs() will return an empty list. + */ + boolean hasAnchor (); + + /** Return a new XResourceId that represents the anchor resource. + */ + XResourceId getAnchor (); + + /** Return the, possibly empty, list of anchor URLs. The URLs are + ordered so that the one in position 0 is the direct anchor of the + resource, while the one in position i+1 is the direct anchor of the + one in position i. + */ + sequence<string> getAnchorURLs (); + + /** Return the type prefix of the resource URL. This includes all up to + and including the second slash. + */ + string getResourceTypePrefix (); + + /** Compare the called <type>XResourceId</type> object with the given + one. + <p>The two resource ids A and B are compared so that if A<B (return + value is -1) then either A and B are unrelated or A is a direct or + indirect anchor of B.</p> + <p>The algorithm for this comparison is quite simple. It uses a + double lexicographic ordering. On the lower level individual URLs + are compared via the lexicographic order defined on strings. On the + higher level two resource ids are compared via a lexicographic order + defined on the URLS. So when there are two resource ids A1.A2 + (A1 being the anchor of A2) and B1.B2 then A1.A2<B1.B2 when A1<B1 or + A1==B1 and A2<B2. Resource ids may have different lengths: A1 < + B1.B2 when A1<B1 or A1==B1 (anchors first then resources linked to them.</p> + @param xId + The resource id to which the called resource id is compared. + @return + Returns <const>0</const> when the called resource id is + equivalent to the given resource id. Returns <code>-1</code> or + <code>+1</code> when the two compared resource ids differ. + */ + short compareTo ( + [in] XResourceId xId); + + /** Return whether the anchor of the called resource id object + represents the same resource as the given object. + <p>Note that not only the anchor of the given object is taken into + account. The whole object, including the resource URL, is + interpreted as anchor resource.</p> + @param xAnchor + The resource id of the anchor. + @param eMode + This mode specifies how the called resource has to be bound to + the given anchor in order to have this function return <TRUE/>. + <p>If eMode is <const>DIRECT</const> then the anchor of the called resource id + has to be identical to the given anchor. If eMode is + <const>INDIRECT</const> then the given anchor has to be a part + of the anchor of the called resource. + */ + boolean isBoundTo ( + [in] XResourceId xId, + [in] AnchorBindingMode eMode); + + /** Return whether the anchor of the called resource id object + represents the same resource as the given anchor URL. This is a + convenience variant of the <member>isBoundTo()</member> function + that can also be seen as an optimization for the case that the + anchor consists of exactly one URL. + @param xAnchor + The resource URL of the anchor. + @param eMode + This mode specifies how the called resource has to be bound to + the given anchor in order to have this function return. See the + description of <member>isBoundTo()</member> for more + information. + */ + boolean isBoundToURL ( + [in] string sAnchorURL, + [in] AnchorBindingMode eMode); + + /** Return a copy of the called resource id. The caller becomes the + owner of the new object. + */ + XResourceId clone (); +}; + +}; }; }; }; }; // ::com::sun::star::drawing::framework + +#endif diff --git a/offapi/com/sun/star/drawing/framework/XTabBar.idl b/offapi/com/sun/star/drawing/framework/XTabBar.idl new file mode 100644 index 000000000000..8213b9babe0a --- /dev/null +++ b/offapi/com/sun/star/drawing/framework/XTabBar.idl @@ -0,0 +1,106 @@ +/************************************************************************* + * + * 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_drawing_framework_XTabBar_idl__ +#define __com_sun_star_drawing_framework_XTabBar_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif +#ifndef __com_sun_star_awt_XWindow_idl__ +#include <com/sun/star/awt/XWindow.idl> +#endif +#ifndef __com_sun_star_drawing_framework_TabBarButton_idl__ +#include <com/sun/star/drawing/framework/TabBarButton.idl> +#endif + +module com { module sun { module star { module drawing { module framework { + +/** UI control for the selection of views in a pane. + <p>Every tab of a tab bar has, besides its localized title and help + text, the URL of a view. A possible alternative would be to use a + command URL instead of the view URL.</p> + <p>In the current Impress implementation a tab bar is only used for the + center pane to switch between views in the center pane. Tab bars can + make sense for other panes as well, i.e. for showing either the slide + sorter or the outline view in the left pane.</p> + <p>Tab bar buttons are identified by their resource id. Note that + because the resource anchors are all the same (the tab bar), it is the + resource URL that really identifies a button. There can not be two + buttons with the same resource id.</p> + </p> + <p>A better place for this interface (in an extended version) would be + <code>com::sun::star::awt</code></p> + @see TabBarButton +*/ +interface XTabBar +{ + /** Add a tab bar button to the right of another one. + @param aButton + The new tab bar button that is to be inserted. If a button with + the same resource id is already present than that is removed before the + new button is inserted. + @param aAnchor + The new button is inserted to the right of this button. When + its ResourceId is empty then the new button is inserted at the left + most position. + */ + void addTabBarButtonAfter ([in] TabBarButton aButton, [in] TabBarButton aAnchor); + + /** Add a tab bar button at the right most position. + @param aButton + The new tab bar button that is to be inserted. + */ + void appendTabBarButton ([in] TabBarButton aButton); + + /** Remove a tab bar button. + @param aButton + The tab bar button to remove. When there is no button with the + specified resource id then this call is silently ignored. + */ + void removeTabBarButton ([in] TabBarButton aButton); + + /** Test whether the specified button exists in the tab bar. + @param aButton + The tab bar button whose existence is tested. + @return + Returns <TRUE/> when the button exists. + */ + boolean hasTabBarButton ([in] TabBarButton aButton); + + /** Return a sequence of all the tab bar buttons. + <p>Their order reflects the visible order in the tab bar.</p> + <p>This method can be used when + <member>addTabBarButtonAfter()</member> does not provide enough + control as to where to insert a new button.</p> + */ + sequence<TabBarButton> getTabBarButtons (); +}; + +}; }; }; }; }; // ::com::sun::star::drawing::framework + +#endif diff --git a/offapi/com/sun/star/drawing/framework/XToolBar.idl b/offapi/com/sun/star/drawing/framework/XToolBar.idl new file mode 100644 index 000000000000..364406affc7f --- /dev/null +++ b/offapi/com/sun/star/drawing/framework/XToolBar.idl @@ -0,0 +1,48 @@ +/************************************************************************* + * + * 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_drawing_framework_XToolBar_idl__ +#define __com_sun_star_drawing_framework_XToolBar_idl__ + +#ifndef __com_sun_star_drawing_framework_XResource_idl__ +#include <com/sun/star/drawing/framework/XResource.idl> +#endif + +module com { module sun { module star { module drawing { module framework { + +/** Abstraction of tool bars used by the drawing framework. + @see XToolBarController + @see XToolBarFactory +*/ +interface XToolBar + : ::com::sun::star::drawing::framework::XResource +{ +}; + +}; }; }; }; }; // ::com::sun::star::drawing::framework + +#endif diff --git a/offapi/com/sun/star/drawing/framework/XView.idl b/offapi/com/sun/star/drawing/framework/XView.idl new file mode 100644 index 000000000000..c773cd903a00 --- /dev/null +++ b/offapi/com/sun/star/drawing/framework/XView.idl @@ -0,0 +1,56 @@ +/************************************************************************* + * + * 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_drawing_framework_XView_idl__ +#define __com_sun_star_drawing_framework_XView_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif +#ifndef __com_sun_star_drawing_framework_XResource_idl__ +#include <com/sun/star/drawing/framework/XResource.idl> +#endif + +module com { module sun { module star { module drawing { module framework { + +/** A view in the drawing framework is any object that paints into a pane. + <p>Typical examples are the Impress views that show a graphical + representation of a document. But the task pane, which is primarily a + container of dialogs, is a view as well.</p> + <p>Luckily the drawing framework does not need to know much about what a + view is. It just needs to identify view objects and a typesafe way to + reference them.</p> + <p>The URL prefix of views is <code>private:resource/view</code></p> +*/ +interface XView +{ + interface XResource; +}; + +}; }; }; }; }; // ::com::sun::star::drawing::framework + +#endif diff --git a/offapi/com/sun/star/drawing/framework/makefile.mk b/offapi/com/sun/star/drawing/framework/makefile.mk new file mode 100644 index 000000000000..e073b1a61ab8 --- /dev/null +++ b/offapi/com/sun/star/drawing/framework/makefile.mk @@ -0,0 +1,75 @@ +#************************************************************************* +# +# 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. +# +#************************************************************************* + +PRJ=..$/..$/..$/..$/.. + +PRJNAME=api + +TARGET=cssdframework +PACKAGE=com$/sun$/star$/drawing$/framework + +# --- Settings ----------------------------------------------------- +.INCLUDE : $(PRJ)$/util$/makefile.pmk + +# ------------------------------------------------------------------------ + +IDLFILES= \ + AnchorBindingMode.idl \ + BasicPaneFactory.idl \ + BasicToolBarFactory.idl \ + BasicViewFactory.idl \ + Configuration.idl \ + ConfigurationChangeEvent.idl \ + ConfigurationController.idl \ + ModuleController.idl \ + ResourceActivationMode.idl \ + ResourceId.idl \ + TabBarButton.idl \ + XConfiguration.idl \ + XConfigurationChangeListener.idl \ + XConfigurationChangeRequest.idl \ + XConfigurationController.idl \ + XConfigurationControllerBroadcaster.idl \ + XConfigurationControllerRequestQueue.idl\ + XControllerManager.idl \ + XModuleController.idl \ + XPane.idl \ + XPane2.idl \ + XPaneBorderPainter.idl \ + XRelocatableResource.idl \ + XResource.idl \ + XResourceId.idl \ + XResourceFactory.idl \ + XResourceFactoryManager.idl \ + XTabBar.idl \ + XToolBar.idl \ + XView.idl + +# ------------------------------------------------------------------ + +.INCLUDE : target.mk +.INCLUDE : $(PRJ)$/util$/target.pmk diff --git a/offapi/com/sun/star/drawing/makefile.mk b/offapi/com/sun/star/drawing/makefile.mk new file mode 100644 index 000000000000..b3d581c755e6 --- /dev/null +++ b/offapi/com/sun/star/drawing/makefile.mk @@ -0,0 +1,227 @@ +#************************************************************************* +# +# 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. +# +#************************************************************************* + +PRJ=..$/..$/..$/.. + +PRJNAME=offapi + +TARGET=cssdrawing +PACKAGE=com$/sun$/star$/drawing + +# --- Settings ----------------------------------------------------- +.INCLUDE : $(PRJ)$/util$/makefile.pmk + +# ------------------------------------------------------------------------ + +IDLFILES=\ + AccessibleShape.idl \ + AccessibleGraphicShape.idl \ + AccessibleOLEShape.idl \ + AccessibleDrawDocumentView.idl \ + AccessibleSlideView.idl \ + AccessibleSlideViewObject.idl \ + AccessibleGraphControl.idl\ + Alignment.idl\ + AppletShape.idl\ + Arrangement.idl\ + Background.idl\ + BezierPoint.idl\ + BitmapMode.idl\ + BitmapTable.idl\ + BoundVolume.idl\ + CameraGeometry.idl\ + CaptionEscapeDirection.idl\ + CaptionShape.idl\ + CaptionType.idl\ + CircleKind.idl\ + ClosedBezierShape.idl\ + ColorMode.idl\ + ConnectionType.idl\ + ConnectorProperties.idl\ + ConnectorShape.idl\ + ConnectorType.idl\ + ControlShape.idl\ + CoordinateSequence.idl\ + CoordinateSequenceSequence.idl\ + CustomShape.idl\ + CustomShapeEngine.idl\ + DashStyle.idl\ + DashTable.idl\ + Defaults.idl\ + Direction3D.idl\ + DocumentSettings.idl\ + DoubleSequence.idl\ + DoubleSequenceSequence.idl\ + DrawingDocument.idl\ + DrawingDocumentDrawView.idl\ + DrawingDocumentFactory.idl\ + DrawPage.idl\ + DrawPages.idl\ + DrawViewMode.idl\ + EnhancedCustomShapeAdjustmentValue.idl\ + EnhancedCustomShapeExtrusion.idl\ + EnhancedCustomShapeGeometry.idl\ + EnhancedCustomShapeGluePointType.idl\ + EnhancedCustomShapeHandle.idl\ + EnhancedCustomShapeParameter.idl\ + EnhancedCustomShapeParameterPair.idl\ + EnhancedCustomShapeParameterType.idl\ + EnhancedCustomShapePath.idl\ + EnhancedCustomShapeSegment.idl\ + EnhancedCustomShapeSegmentCommand.idl\ + EnhancedCustomShapeTextFrame.idl\ + EnhancedCustomShapeTextPath.idl\ + EnhancedCustomShapeTextPathMode.idl\ + EllipseShape.idl\ + EscapeDirection.idl\ + FillProperties.idl\ + FillStyle.idl\ + FlagSequence.idl\ + FlagSequenceSequence.idl\ + GenericDrawingDocument.idl\ + GenericDrawPage.idl\ + GluePoint.idl\ + GluePoint2.idl\ + GradientTable.idl\ + GraphicExportFilter.idl\ + GraphicFilterRequest.idl\ + GraphicObjectShape.idl\ + GroupShape.idl\ + Hatch.idl\ + HatchStyle.idl\ + HatchTable.idl\ + HomogenMatrix.idl\ + HomogenMatrix3.idl\ + HomogenMatrix4.idl\ + HomogenMatrixLine.idl\ + HomogenMatrixLine3.idl\ + HomogenMatrixLine4.idl\ + HorizontalDimensioning.idl\ + Layer.idl\ + LayerManager.idl\ + LayerType.idl\ + LineDash.idl\ + LineEndType.idl\ + LineJoint.idl\ + LineProperties.idl\ + LineShape.idl\ + LineStyle.idl\ + MarkerTable.idl\ + MasterPage.idl\ + MasterPages.idl\ + MeasureKind.idl\ + MeasureProperties.idl\ + MeasureShape.idl\ + MeasureTextHorzPos.idl\ + MeasureTextVertPos.idl\ + MirrorAxis.idl\ + NormalsKind.idl\ + OLE2Shape.idl\ + OpenBezierShape.idl\ + PageShape.idl\ + PluginShape.idl\ + PointSequence.idl\ + PointSequenceSequence.idl\ + PolygonFlags.idl\ + PolygonKind.idl\ + PolyLineShape.idl\ + PolyPolygonBezierCoords.idl\ + PolyPolygonBezierDescriptor.idl\ + PolyPolygonBezierShape.idl\ + PolyPolygonDescriptor.idl\ + PolyPolygonShape.idl\ + PolyPolygonShape3D.idl\ + Position3D.idl\ + ProjectionMode.idl\ + RectanglePoint.idl\ + RectangleShape.idl\ + RotationDescriptor.idl\ + ShadeMode.idl\ + ShadowProperties.idl\ + Shape.idl\ + ShapeCollection.idl\ + Shapes.idl\ + SlideRenderer.idl\ + SlideSorter.idl\ + SnapObjectType.idl\ + Text.idl\ + TextAdjust.idl\ + TextAnimationDirection.idl\ + TextAnimationKind.idl\ + TextFitToSizeType.idl\ + TextHorizontalAdjust.idl\ + TextProperties.idl\ + TextShape.idl\ + TextureKind.idl\ + TextureKind2.idl\ + TextureMode.idl\ + TextureProjectionMode.idl\ + TextVerticalAdjust.idl\ + TransparencyGradientTable.idl\ + VerticalDimensioning.idl\ + XConnectableShape.idl\ + XConnectorShape.idl\ + XControlShape.idl\ + XCustomShapeEngine.idl\ + XCustomShapeHandle.idl\ + XDrawPage.idl\ + XDrawPageDuplicator.idl\ + XDrawPageExpander.idl\ + XDrawPages.idl\ + XDrawPagesSupplier.idl\ + XDrawPageSummarizer.idl\ + XDrawPageSupplier.idl\ + XDrawSubController.idl\ + XDrawView.idl\ + XEnhancedCustomShapeDefaulter.idl\ + XGluePointsSupplier.idl\ + XLayer.idl\ + XLayerManager.idl\ + XLayerSupplier.idl\ + XMasterPagesSupplier.idl\ + XMasterPageTarget.idl\ + XPresenterHelper.idl\ + XShape.idl\ + XShapeAligner.idl\ + XShapeArranger.idl\ + XShapeBinder.idl\ + XShapeCombiner.idl\ + XShapeDescriptor.idl\ + XShapeGroup.idl\ + XShapeGrouper.idl\ + XShapeMirror.idl\ + XShapes.idl\ + XSlidePreviewCache.idl\ + XSlideRenderer.idl\ + XUniversalShapeDescriptor.idl\ + XSelectionFunction.idl + +# ------------------------------------------------------------------ + +.INCLUDE : target.mk +.INCLUDE : $(PRJ)$/util$/target.pmk + diff --git a/offapi/com/sun/star/drawing/modules.idl b/offapi/com/sun/star/drawing/modules.idl new file mode 100644 index 000000000000..5c9fe1d58c31 --- /dev/null +++ b/offapi/com/sun/star/drawing/modules.idl @@ -0,0 +1,65 @@ +/************************************************************************* + * + * 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_modules_framework_idl__ +#define __com_sun_star_modules_framework_idl__ + +module com { module sun { module star { module drawing { + +/** The drawing framework is responsible for managing the resources used by + the UI of the drawing applications. + <p>The framework is implemented by a set of sub controllers that are + responsible for its different resources: <type + scope="com::sun::star::drawing::framework">XModuleController</type>, + <type scope="com::sun::star::drawing::framework">XPaneController</type>, + <type scope="com::sun::star::drawing::framework">XViewController</type>, + <type scope="com::sun::star::drawing::framework">XToolbarController</type>, + <type scope="com::sun::star::drawing::framework">XCommandController</type>. + The set of active resources is represented by the <type + scope="com::sun::star::drawing::framework">XConfiguration</type>.</p> + <p>The <type + scope="com::sun::star::drawing::framework">XControllerManager</type> + interface provides access to the sub controllers. It typically is + implemented by the same class that implements the <type + scope="com::sun::star::frame">XController</type> interface.</p> + <p>The + configuration is managed by the <type + scope="com::sun::star::drawing::framework">XConfigurationController</type>. + It coordinates changes to the configuration made by the other sub + controllers so that + <ul><li>unnecessary ui updates (flickering) is avoided and</li> + <li>and the configuration is always in a valid and meaningfull + state.</li></ul></p> + <p>For more information please see the wiki page of the <a + href="http://wiki.services.openoffice.org/wiki/Drawing_framework">drawing framework</a>. +*/ +module framework {}; + +}; }; }; }; + +#endif + |