Graphic Objects

From Apache OpenOffice Wiki
Jump to: navigation, search



A TextGraphicObject is a BaseFrame and does not provide any additional interfaces, compared with com.sun.star.text.BaseFrame. However, it introduces a number of properties that allow manipulating of a graphic object. They are described in the service com.sun.star.text.TextGraphicObject:

Properties of com.sun.star.text.TextGraphicObject
ImageMap com.sun.star.container.XIndexContainer. Returns the client-side image map if one is assigned to the object.
ContentProtected boolean - Determines if the content is protected against changes from the user interface.
SurroundContour boolean - Determines if the text wraps around the contour of the object.
ContourOutside boolean - The text flows only around the contour of the object.
ContourPolyPolygon [optional] struct com.sun.star.drawing.PointSequenceSequence. Contains the contour of the object as PolyPolygon.
GraphicCrop struct com.sun.star.text.GraphicCrop. Contains the cropping of the object.
HoriMirroredOnEvenPages boolean - Determines if the object is horizontally mirrored on even pages.
HoriMirroredOnOddPages boolean - Determines if the object is horizontally mirrored on odd pages.
VertMirrored boolean - Determines if the object is mirrored vertically.
GraphicURL string - Contains the URL of the background graphic of the object.
GraphicFilter string - Contains the name of the filter of the background graphic of the object.
ActualSize com.sun.star.awt.Size. Contains the original size of the bitmap in the graphic object.
AdjustLuminance short - Changes the display of the luminance. It contains percentage values between -100 and +100.
AdjustContrast short - Changes the display of contrast. It contains percentage values between -100 and +100.
AdjustRed short - Changes the display of the red color channel. It contains percentage values between -100 and +100.
AdjustGreen short - Changes the display of the green color channel. It contains percentage values between -100 and +100.
AdjustBlue short - Changes the display of the blue color channel. It contains percentage values between -100 and +100.
Gamma double - Determines the gamma value of the graphic.
GraphicIsInverted boolean - Determines if the graphic is displayed in inverted colors. It contains percentage values between -100 and +100.
Transparency short - Measure of transparency. It contains percentage values between -100 and +100.
GraphicColorMode long - Contains the ColorMode according to com.sun.star.drawing.ColorMode.
Documentation caution.png TextGraphicObject files can currently only be linked when inserted through API which means only their URL is stored with the document. Embedding of graphics is not supported. This applies to background graphics which can be set, for example, to paragraphs, tables or text sections.


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