Shape Types

From Apache OpenOffice Wiki
< Documentation‎ | DevGuide
Revision as of 14:22, 20 December 2020 by DiGro (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



ShapeTypes
ShapeTypes

The following table lists all shapes supported in Draw and Impress documents. They come from the com.sun.star.drawing. Each shape is based on com.sun.star.drawing.Shape. Additionally, there are five services in the module com.sun.star.drawing that most of the shapes have in common:

com.sun.star.drawing.Text, com.sun.star.drawing.LineProperties, com.sun.star.drawing.FillProperties and com.sun.star.drawing.ShadowProperties handle shape formatting, whereas com.sun.star.drawing.RotationDescriptor controls rotation and shearing. The section General Drawing Properties below discusses shape formatting in more detail. Refer to the section Shape Operations for information on rotation and shearing.

Documentation note.png The service com.sun.star.drawing.Text is different from other Text services. It consists of the service com.sun.star.drawing.TextProperties and the interface com.sun.star.text.XText that was introduced in the chapter First Steps. Drawing text does not supports text contents other than paragraphs consisting of character strings.

An x denotes which of these services are supported by each shape. The rightmost column shows the services, interfaces and properties that are specific for the various shapes.

ShapeType Text Line Properties Fill Properties Shadow Properties Rotation Descriptor Supported services, Exported interfaces, Properties
ClosedBezierShape
x
x
x
x
x
included service:

com.sun.star.drawing.PolyPolygonBezierDescriptor

ConnectorShape
x
x
x
x
included service:

com.sun.star.drawing.ConnectorProperties

properties:
com.sun.star.drawing.XShape StartShape
com.sun.star.drawing.XShape EndShape
com.sun.star.awt.Point StartPosition
com.sun.star.awt.Point EndPosition
long StartGluePointIndex
long EndGluePointIndex
long EdgeLine1Delta
long EdgeLine2Delta
long EdgeLine3Delta

ControlShape exported interface:com.sun.star.drawing.XControlShape
EllipseShape
x
x
x
x
x
properties:com.sun.star.drawing.CircleKind CircleKind

long CircleStartAngle
long CircleEndAngle

GraphicObjectShape
x
x
x
properties:

string GraphicURL
string GraphicStreamURL
short AdjustLuminance
short AdjustContrast
short AdjustRed
short AdjustGreen
short AdjustBlue
double Gamma
short Transparency
com.sun.star.drawing.ColorMode GraphicColorMode

optional properties:
com.sun.star.awt.XBitmap GraphicObjectFillBitmap
com.sun.star.container.XIndexContainer ImageMap

GroupShape exported interfaces:

com.sun.star.drawing.XShapeGroup
com.sun.star.drawing.XShapes

LineShape
x
x
x
x
included service:

com.sun.star.drawing.PolyPolygonDescriptor

MeasureShape
x
x
x
x
included service:

com.sun.star.drawing.MeasureProperties

properties:
com.sun.star.awt.Point StartingPosition
com.sun.star.awt.Point EndPosition

OLE2Shape properties:

string CLSID

readonly properties:
com.sun.star.frame.XModel Model
boolean IsInternal

OpenBezierShape
x
x
x
x
included service:

com.sun.star.drawing.PolyPolygonBezierDescriptor

PageShape
PolyLineShape
x
x
x
x
included service:

com.sun.star.drawing.PolyPolygonDescriptor

PolyPolygonBezierShape
x
x
x
x
x
included service:

com.sun.star.drawing.PolyPolygonBezierDescriptor

PolyPolygonShape
x
x
x
x
x
included service:

com.sun.star.drawing.PolyPolygonDescriptor

RectangleShape
x
x
x
x
x
properties:

long CornerRadius

TextShape
x
x
x
x
x
properties:

long CornerRadius

PluginShape properties:

string PluginMimeType
string PluginURL
sequence< com.sun.star.beans.PropertyValue > PluginCommands

Content on this page is licensed under the Public Documentation License (PDL).
Personal tools
In other languages