1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 module com
{ module sun
{ module star
{ module drawing
{
25 /** This is a set of properties to describe the style for rendering the
26 text area inside a shape.
28 published service TextProperties
30 /** The properties in this service set default formats for text
33 service com
::sun
::star
::style
::CharacterProperties
;
36 /** The properties in this service set default formats for Asian text
39 [optional] service com
::sun
::star
::style
::CharacterPropertiesAsian
;
42 /** The properties in this service set default formats for complex text
45 [optional] service com
::sun
::star
::style
::CharacterPropertiesComplex
;
48 /** The properties in this service set default formats for text
51 service com
::sun
::star
::style
::ParagraphProperties
;
54 /** The properties in this service set default formats for Asian text
57 [optional] service com
::sun
::star
::style
::ParagraphPropertiesAsian
;
60 /** The properties in this service set default formats for complex text
63 [optional] service com
::sun
::star
::style
::ParagraphPropertiesComplex
;
65 /** If this is `TRUE`, numbering is ON for the text of
68 [optional, property
] boolean IsNumbering
;
71 /** describes the numbering levels.
72 <p>The different rules accessible with this
73 com::sun::star::container::XIndexReplace interface
74 are sequences of property values as described in the service
75 com::sun::star::style::NumberingRule.</p>
77 [optional, property
] com
::sun
::star
::container
::XIndexReplace NumberingRules
;
80 /** If this value is `TRUE`, the height of the Shape is
81 automatically expanded/shrunk when text is added to or removed from
84 [property
] boolean TextAutoGrowHeight
;
87 /** If this value is `TRUE`, the width of the Shape is
88 automatically expanded/shrunk when text is added to or removed from
91 [property
] boolean TextAutoGrowWidth
;
93 /** If this value is `TRUE`, the left edge of every line of text is
94 aligned with the left edge of this Shape.
96 [property
] boolean TextContourFrame
;
99 /** With this set to a value other than `NONE`, the text inside of
100 the Shape is stretched or scaled to fit into the Shape.
102 [property
] com
::sun
::star
::drawing
::TextFitToSizeType TextFitToSize
;
105 /** adjusts the horizontal position of the text inside of
108 [property
] com
::sun
::star
::drawing
::TextHorizontalAdjust TextHorizontalAdjust
;
111 /** adjusts the vertical position of the text inside of
114 [property
] com
::sun
::star
::drawing
::TextVerticalAdjust TextVerticalAdjust
;
117 /** This is the distance from the left edge of the Shape
118 to the left edge of the text.
119 <p>This is only useful if Text::TextHorizontalAdjust is
120 BLOCK or STRETCH or if
121 Text::TextFitSize is `TRUE`.</p>
123 [property
] long TextLeftDistance
;
126 /** This is the distance from the right edge of the Shape
127 to the right edge of the text.
129 <p>This is only useful if Text::TextHorizontalAdjust is
131 or if Text::TextFitSize is `TRUE`.</p>
133 [property
] long TextRightDistance
;
136 /** This is the distance from the upper edge of the Shape to
137 the upper edge of the text.
139 <p>This is only useful if Text::TextVerticalAdjust is
140 BLOCK or if Text::TextFitSize is
143 [property
] long TextUpperDistance
;
146 /** This is the distance from the lower edge of the Shape to the
147 lower edge of the text.
151 <p>This is only useful if Text::TextVerticalAdjust is
152 BLOCK or if Text::TextFitSize is
155 [property
] long TextLowerDistance
;
158 /** with this property you can set the maximum height for a shape with text.
159 On edit, the auto grow feature will not grow the object higher than
160 the value of this property.
162 [property
] long TextMaximumFrameHeight
;
165 /** with this property you can set the maximum width for a shape with text.
166 On edit, the auto grow feature will not grow the objects wider than
167 the value of this property.
169 [property
] long TextMaximumFrameWidth
;
172 /** with this property you can set the minimum height for a shape with text.
173 On edit, the auto grow feature will not shrink the objects height smaller
174 than the value of this property.
176 [property
] long TextMinimumFrameHeight
;
179 /** with this property you can set the minimum width for a shape with text.
180 On edit, the auto grow feature will not shrink the object width smaller
181 than the value of this property.
183 [property
] long TextMinimumFrameWidth
;
186 /** This is the number of pixels the text is moved in each animation step.
188 [property
] short TextAnimationAmount
;
191 /** This number defines how many times the text animation is repeated.
192 <p>If this is set to zero, the repeat is endless.</p>
194 [property
] short TextAnimationCount
;
197 /** This is the delay in thousandths of a second between each
198 of the animation steps.
200 [property
] short TextAnimationDelay
;
203 /** This enumeration defines the direction in which the text moves.
205 [property
] com
::sun
::star
::drawing
::TextAnimationDirection TextAnimationDirection
;
208 /** This value defines the type of animation.
210 [property
] com
::sun
::star
::drawing
::TextAnimationKind TextAnimationKind
;
213 /** If this value is `TRUE`, the text is visible at the start of the
216 [property
] boolean TextAnimationStartInside
;
219 /** If this value is `TRUE`, the text is visible at the end of the
222 [property
] boolean TextAnimationStopInside
;
225 /** This value selects the writing mode for the text.
227 [property
] ::com
::sun
::star
::text
::WritingMode TextWritingMode
;
230 /** Column layout properties for the text.
232 @since LibreOffice 7.2
234 [optional, property
] ::com
::sun
::star
::text
::XTextColumns TextColumns
;
240 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */