1*b1cdbd2cSJim Jagielski/**************************************************************
2*b1cdbd2cSJim Jagielski *
3*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one
4*b1cdbd2cSJim Jagielski * or more contributor license agreements.  See the NOTICE file
5*b1cdbd2cSJim Jagielski * distributed with this work for additional information
6*b1cdbd2cSJim Jagielski * regarding copyright ownership.  The ASF licenses this file
7*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the
8*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance
9*b1cdbd2cSJim Jagielski * with the License.  You may obtain a copy of the License at
10*b1cdbd2cSJim Jagielski *
11*b1cdbd2cSJim Jagielski *   http://www.apache.org/licenses/LICENSE-2.0
12*b1cdbd2cSJim Jagielski *
13*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing,
14*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an
15*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*b1cdbd2cSJim Jagielski * KIND, either express or implied.  See the License for the
17*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations
18*b1cdbd2cSJim Jagielski * under the License.
19*b1cdbd2cSJim Jagielski *
20*b1cdbd2cSJim Jagielski *************************************************************/
21*b1cdbd2cSJim Jagielski
22*b1cdbd2cSJim Jagielski
23*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_drawing_TextProperties_idl__
24*b1cdbd2cSJim Jagielski#define __com_sun_star_drawing_TextProperties_idl__
25*b1cdbd2cSJim Jagielski
26*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_container_XIndexReplace_idl__
27*b1cdbd2cSJim Jagielski#include <com/sun/star/container/XIndexReplace.idl>
28*b1cdbd2cSJim Jagielski#endif
29*b1cdbd2cSJim Jagielski
30*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_style_CharacterProperties_idl__
31*b1cdbd2cSJim Jagielski#include <com/sun/star/style/CharacterProperties.idl>
32*b1cdbd2cSJim Jagielski#endif
33*b1cdbd2cSJim Jagielski
34*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_style_CharacterPropertiesAsian_idl__
35*b1cdbd2cSJim Jagielski#include <com/sun/star/style/CharacterPropertiesAsian.idl>
36*b1cdbd2cSJim Jagielski#endif
37*b1cdbd2cSJim Jagielski
38*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_style_CharacterPropertiesComplex_idl__
39*b1cdbd2cSJim Jagielski#include <com/sun/star/style/CharacterPropertiesComplex.idl>
40*b1cdbd2cSJim Jagielski#endif
41*b1cdbd2cSJim Jagielski
42*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_style_ParagraphProperties_idl__
43*b1cdbd2cSJim Jagielski#include <com/sun/star/style/ParagraphProperties.idl>
44*b1cdbd2cSJim Jagielski#endif
45*b1cdbd2cSJim Jagielski
46*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_style_ParagraphPropertiesAsian_idl__
47*b1cdbd2cSJim Jagielski#include <com/sun/star/style/ParagraphPropertiesAsian.idl>
48*b1cdbd2cSJim Jagielski#endif
49*b1cdbd2cSJim Jagielski
50*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_style_ParagraphPropertiesComplex_idl__
51*b1cdbd2cSJim Jagielski#include <com/sun/star/style/ParagraphPropertiesComplex.idl>
52*b1cdbd2cSJim Jagielski#endif
53*b1cdbd2cSJim Jagielski
54*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_drawing_TextFitToSizeType_idl__
55*b1cdbd2cSJim Jagielski#include <com/sun/star/drawing/TextFitToSizeType.idl>
56*b1cdbd2cSJim Jagielski#endif
57*b1cdbd2cSJim Jagielski
58*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_drawing_TextAdjust_idl__
59*b1cdbd2cSJim Jagielski#include <com/sun/star/drawing/TextAdjust.idl>
60*b1cdbd2cSJim Jagielski#endif
61*b1cdbd2cSJim Jagielski
62*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_drawing_TextAnimationDirection_idl__
63*b1cdbd2cSJim Jagielski#include <com/sun/star/drawing/TextAnimationDirection.idl>
64*b1cdbd2cSJim Jagielski#endif
65*b1cdbd2cSJim Jagielski
66*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_drawing_TextAnimationKind_idl__
67*b1cdbd2cSJim Jagielski#include <com/sun/star/drawing/TextAnimationKind.idl>
68*b1cdbd2cSJim Jagielski#endif
69*b1cdbd2cSJim Jagielski
70*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_drawing_TextVerticalAdjust_idl__
71*b1cdbd2cSJim Jagielski#include <com/sun/star/drawing/TextVerticalAdjust.idl>
72*b1cdbd2cSJim Jagielski#endif
73*b1cdbd2cSJim Jagielski
74*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_drawing_TextHorizontalAdjust_idl__
75*b1cdbd2cSJim Jagielski#include <com/sun/star/drawing/TextHorizontalAdjust.idl>
76*b1cdbd2cSJim Jagielski#endif
77*b1cdbd2cSJim Jagielski
78*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_text_WritingMode_idl__
79*b1cdbd2cSJim Jagielski#include <com/sun/star/text/WritingMode.idl>
80*b1cdbd2cSJim Jagielski#endif
81*b1cdbd2cSJim Jagielski
82*b1cdbd2cSJim Jagielski//=============================================================================
83*b1cdbd2cSJim Jagielski
84*b1cdbd2cSJim Jagielski module com {  module sun {  module star {  module drawing {
85*b1cdbd2cSJim Jagielski
86*b1cdbd2cSJim Jagielski//=============================================================================
87*b1cdbd2cSJim Jagielski
88*b1cdbd2cSJim Jagielski
89*b1cdbd2cSJim Jagielski/** This is a set of properties to describe the style for rendering the
90*b1cdbd2cSJim Jagielski	text area inside a shape.
91*b1cdbd2cSJim Jagielski */
92*b1cdbd2cSJim Jagielskipublished service TextProperties
93*b1cdbd2cSJim Jagielski{
94*b1cdbd2cSJim Jagielski	/** The properties in this service set default formats for text
95*b1cdbd2cSJim Jagielski		inside the <type>Shape</type>.
96*b1cdbd2cSJim Jagielski	 */
97*b1cdbd2cSJim Jagielski	service com::sun::star::style::CharacterProperties;
98*b1cdbd2cSJim Jagielski
99*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
100*b1cdbd2cSJim Jagielski
101*b1cdbd2cSJim Jagielski	/** The properties in this service set default formats for asian text
102*b1cdbd2cSJim Jagielski		inside the <type>Shape</type>.
103*b1cdbd2cSJim Jagielski	 */
104*b1cdbd2cSJim Jagielski	[optional] service com::sun::star::style::CharacterPropertiesAsian;
105*b1cdbd2cSJim Jagielski
106*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
107*b1cdbd2cSJim Jagielski
108*b1cdbd2cSJim Jagielski	/** The properties in this service set default formats for complex text
109*b1cdbd2cSJim Jagielski		inside the <type>Shape</type>.
110*b1cdbd2cSJim Jagielski	 */
111*b1cdbd2cSJim Jagielski	[optional] service com::sun::star::style::CharacterPropertiesComplex;
112*b1cdbd2cSJim Jagielski
113*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
114*b1cdbd2cSJim Jagielski
115*b1cdbd2cSJim Jagielski	/** The properties in this service set default formats for text
116*b1cdbd2cSJim Jagielski		inside the <type>Shape</type>.
117*b1cdbd2cSJim Jagielski	 */
118*b1cdbd2cSJim Jagielski	service com::sun::star::style::ParagraphProperties;
119*b1cdbd2cSJim Jagielski
120*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
121*b1cdbd2cSJim Jagielski
122*b1cdbd2cSJim Jagielski	/** The properties in this service set default formats for asian text
123*b1cdbd2cSJim Jagielski		inside the <type>Shape</type>.
124*b1cdbd2cSJim Jagielski	 */
125*b1cdbd2cSJim Jagielski	[optional] service com::sun::star::style::ParagraphPropertiesAsian;
126*b1cdbd2cSJim Jagielski
127*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
128*b1cdbd2cSJim Jagielski
129*b1cdbd2cSJim Jagielski	/** The properties in this service set default formats for complex text
130*b1cdbd2cSJim Jagielski		inside the <type>Shape</type>.
131*b1cdbd2cSJim Jagielski	 */
132*b1cdbd2cSJim Jagielski	[optional] service com::sun::star::style::ParagraphPropertiesComplex;
133*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
134*b1cdbd2cSJim Jagielski
135*b1cdbd2cSJim Jagielski	/** If this is <TRUE/>, numbering is ON for the text of
136*b1cdbd2cSJim Jagielski		this <type>Shape</type>.
137*b1cdbd2cSJim Jagielski	 */
138*b1cdbd2cSJim Jagielski	[optional, property] boolean IsNumbering;
139*b1cdbd2cSJim Jagielski
140*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
141*b1cdbd2cSJim Jagielski
142*b1cdbd2cSJim Jagielski	/** describes the numbering levels.
143*b1cdbd2cSJim Jagielski		<p>The different rules accessible with this
144*b1cdbd2cSJim Jagielski		<type scope="com::sun::star::container">XIndexReplace</type> interface
145*b1cdbd2cSJim Jagielski		are sequences of property values as described in the service
146*b1cdbd2cSJim Jagielski		<type scope="com::sun::star::style">NumberingRule</type>.</p>
147*b1cdbd2cSJim Jagielski	 */
148*b1cdbd2cSJim Jagielski	[optional, property] com::sun::star::container::XIndexReplace NumberingRules;
149*b1cdbd2cSJim Jagielski
150*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
151*b1cdbd2cSJim Jagielski
152*b1cdbd2cSJim Jagielski	/** If this value is <TRUE/>, the height of the <type>Shape</type> is
153*b1cdbd2cSJim Jagielski		automatically expanded/shrunk when text is added to or removed from
154*b1cdbd2cSJim Jagielski		the <type>Shape</type>.
155*b1cdbd2cSJim Jagielski	 */
156*b1cdbd2cSJim Jagielski	[property] boolean TextAutoGrowHeight;
157*b1cdbd2cSJim Jagielski
158*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
159*b1cdbd2cSJim Jagielski
160*b1cdbd2cSJim Jagielski	/** If this value is <TRUE/>, the width of the <type>Shape</type> is
161*b1cdbd2cSJim Jagielski		automatically expanded/shrunk when text is added to or removed from
162*b1cdbd2cSJim Jagielski		the <type>Shape</type>.
163*b1cdbd2cSJim Jagielski	 */
164*b1cdbd2cSJim Jagielski	[property] boolean TextAutoGrowWidth;
165*b1cdbd2cSJim Jagielski
166*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
167*b1cdbd2cSJim Jagielski
168*b1cdbd2cSJim Jagielski	// DocMerge from xml: property com::sun::star::drawing::Text::TextContourFrame
169*b1cdbd2cSJim Jagielski	/** If this value is <TRUE/>, the left edge of every line of text is
170*b1cdbd2cSJim Jagielski		aligned with the left edge of this <type>Shape</type>.
171*b1cdbd2cSJim Jagielski	 */
172*b1cdbd2cSJim Jagielski	[property] boolean TextContourFrame;
173*b1cdbd2cSJim Jagielski
174*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
175*b1cdbd2cSJim Jagielski
176*b1cdbd2cSJim Jagielski	/** With this set to <TRUE/>, the text inside of the <type>Shape</type>
177*b1cdbd2cSJim Jagielski		is stretched to fit into the <type>Shape</type>.
178*b1cdbd2cSJim Jagielski	 */
179*b1cdbd2cSJim Jagielski	[property] com::sun::star::drawing::TextFitToSizeType TextFitToSize;
180*b1cdbd2cSJim Jagielski
181*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
182*b1cdbd2cSJim Jagielski
183*b1cdbd2cSJim Jagielski	/** adjusts the horizontal position of the text inside of
184*b1cdbd2cSJim Jagielski		the <type>Shape</type>.
185*b1cdbd2cSJim Jagielski	 */
186*b1cdbd2cSJim Jagielski	[property] com::sun::star::drawing::TextHorizontalAdjust TextHorizontalAdjust;
187*b1cdbd2cSJim Jagielski
188*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
189*b1cdbd2cSJim Jagielski
190*b1cdbd2cSJim Jagielski	/** adjusts the vertical position of the text inside of
191*b1cdbd2cSJim Jagielski		the <type>Shape</type>.
192*b1cdbd2cSJim Jagielski	 */
193*b1cdbd2cSJim Jagielski	[property] com::sun::star::drawing::TextVerticalAdjust TextVerticalAdjust;
194*b1cdbd2cSJim Jagielski
195*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
196*b1cdbd2cSJim Jagielski
197*b1cdbd2cSJim Jagielski	/** This is the distance from the left edge of the <type>Shape</type>
198*b1cdbd2cSJim Jagielski		to the left edge of the text.
199*b1cdbd2cSJim Jagielski		<p>This is only useful if <member>Text::TextHorizontalAdjust</member> is
200*b1cdbd2cSJim Jagielski		<const>BLOCK</const> or <const>STRETCH</const> or if
201*b1cdbd2cSJim Jagielski		<member>Text::TextFitSize</member> is <TRUE/>.</p>
202*b1cdbd2cSJim Jagielski	 */
203*b1cdbd2cSJim Jagielski	[property] long TextLeftDistance;
204*b1cdbd2cSJim Jagielski
205*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
206*b1cdbd2cSJim Jagielski
207*b1cdbd2cSJim Jagielski	/** This is the distance from the right edge of the <type>Shape</type>
208*b1cdbd2cSJim Jagielski		to the right edge of the text.
209*b1cdbd2cSJim Jagielski
210*b1cdbd2cSJim Jagielski		<p>This is only useful if <member>Text::TextHorizontalAdjust</member> is
211*b1cdbd2cSJim Jagielski		<const>BLOCK</const> or <const>STRETCH</const>
212*b1cdbd2cSJim Jagielski		or if <member>Text::TextFitSize</member> is <TRUE/>.</p>
213*b1cdbd2cSJim Jagielski	 */
214*b1cdbd2cSJim Jagielski	[property] long TextRightDistance;
215*b1cdbd2cSJim Jagielski
216*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
217*b1cdbd2cSJim Jagielski
218*b1cdbd2cSJim Jagielski	/** This is the distance from the upper edge of the <type>Shape</type> to
219*b1cdbd2cSJim Jagielski		the upper edge of the text.
220*b1cdbd2cSJim Jagielski
221*b1cdbd2cSJim Jagielski		<p>This is only useful if <member>Text::TextVerticalAdjust</member> is
222*b1cdbd2cSJim Jagielski		<const>BLOCK</const> or if <member>Text::TextFitSize</member> is
223*b1cdbd2cSJim Jagielski		<TRUE/>.</p>
224*b1cdbd2cSJim Jagielski	 */
225*b1cdbd2cSJim Jagielski	[property] long TextUpperDistance;
226*b1cdbd2cSJim Jagielski
227*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
228*b1cdbd2cSJim Jagielski
229*b1cdbd2cSJim Jagielski	/** This is the distance from the lower edge of the <type>Shape</type> to the
230*b1cdbd2cSJim Jagielski		lower edge of the text.
231*b1cdbd2cSJim Jagielski
232*b1cdbd2cSJim Jagielski
233*b1cdbd2cSJim Jagielski
234*b1cdbd2cSJim Jagielski		<p>This is only useful if <member>Text::TextVerticalAdjust</member> is
235*b1cdbd2cSJim Jagielski		<const>BLOCK</const> or if <member>Text::TextFitSize</member> is
236*b1cdbd2cSJim Jagielski		<TRUE/>.</p>
237*b1cdbd2cSJim Jagielski	 */
238*b1cdbd2cSJim Jagielski	[property] long TextLowerDistance;
239*b1cdbd2cSJim Jagielski
240*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
241*b1cdbd2cSJim Jagielski
242*b1cdbd2cSJim Jagielski	/** with this property you can set the maximum height for a shape with text.
243*b1cdbd2cSJim Jagielski		On edit, the auto grow feature will not grow the object heigher than
244*b1cdbd2cSJim Jagielski		the value of this property.
245*b1cdbd2cSJim Jagielski	*/
246*b1cdbd2cSJim Jagielski	[property] long TextMaximumFrameHeight;
247*b1cdbd2cSJim Jagielski
248*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
249*b1cdbd2cSJim Jagielski
250*b1cdbd2cSJim Jagielski	/** with this property you can set the maximum width for a shape with text.
251*b1cdbd2cSJim Jagielski		On edit, the auto grow feature will not grow the objects wider than
252*b1cdbd2cSJim Jagielski		the value of this property.
253*b1cdbd2cSJim Jagielski	*/
254*b1cdbd2cSJim Jagielski	[property] long TextMaximumFrameWidth;
255*b1cdbd2cSJim Jagielski
256*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
257*b1cdbd2cSJim Jagielski
258*b1cdbd2cSJim Jagielski	/** with this property you can set the minimum height for a shape with text.
259*b1cdbd2cSJim Jagielski		On edit, the auto grow feature will not shrink the objects height smaller
260*b1cdbd2cSJim Jagielski		than the value of this property.
261*b1cdbd2cSJim Jagielski	*/
262*b1cdbd2cSJim Jagielski	[property] long TextMinimumFrameHeight;
263*b1cdbd2cSJim Jagielski
264*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
265*b1cdbd2cSJim Jagielski
266*b1cdbd2cSJim Jagielski	/** with this property you can set the minimum width for a shape with text.
267*b1cdbd2cSJim Jagielski		On edit, the auto grow feature will not shrink the object width smaller
268*b1cdbd2cSJim Jagielski		than the value of this property.
269*b1cdbd2cSJim Jagielski	*/
270*b1cdbd2cSJim Jagielski	[property] long TextMinimumFrameWidth;
271*b1cdbd2cSJim Jagielski
272*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
273*b1cdbd2cSJim Jagielski
274*b1cdbd2cSJim Jagielski	/** This is the number of pixels the text is moved in each animation step.
275*b1cdbd2cSJim Jagielski	 */
276*b1cdbd2cSJim Jagielski	[property] short TextAnimationAmount;
277*b1cdbd2cSJim Jagielski
278*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
279*b1cdbd2cSJim Jagielski
280*b1cdbd2cSJim Jagielski	/** This number defines how many times the text animation is repeated.
281*b1cdbd2cSJim Jagielski		<p>If this is set to zero, the repeat is endless.</p>
282*b1cdbd2cSJim Jagielski	 */
283*b1cdbd2cSJim Jagielski	[property] short TextAnimationCount;
284*b1cdbd2cSJim Jagielski
285*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
286*b1cdbd2cSJim Jagielski
287*b1cdbd2cSJim Jagielski	/** This is the delay in thousandths of a second between each
288*b1cdbd2cSJim Jagielski		of the animation steps.
289*b1cdbd2cSJim Jagielski	 */
290*b1cdbd2cSJim Jagielski	[property] short TextAnimationDelay;
291*b1cdbd2cSJim Jagielski
292*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
293*b1cdbd2cSJim Jagielski
294*b1cdbd2cSJim Jagielski	/** This enumeration defines the direction in which the text moves.
295*b1cdbd2cSJim Jagielski	 */
296*b1cdbd2cSJim Jagielski	[property] com::sun::star::drawing::TextAnimationDirection TextAnimationDirection;
297*b1cdbd2cSJim Jagielski
298*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
299*b1cdbd2cSJim Jagielski
300*b1cdbd2cSJim Jagielski	/** This value defines the type of animation.
301*b1cdbd2cSJim Jagielski	 */
302*b1cdbd2cSJim Jagielski	[property] com::sun::star::drawing::TextAnimationKind TextAnimationKind;
303*b1cdbd2cSJim Jagielski
304*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
305*b1cdbd2cSJim Jagielski
306*b1cdbd2cSJim Jagielski	/** If this value is <TRUE/>, the text is visible at the start of the
307*b1cdbd2cSJim Jagielski		animation.
308*b1cdbd2cSJim Jagielski	 */
309*b1cdbd2cSJim Jagielski	[property] boolean TextAnimationStartInside;
310*b1cdbd2cSJim Jagielski
311*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
312*b1cdbd2cSJim Jagielski
313*b1cdbd2cSJim Jagielski	/** If this value is <TRUE/>, the text is visible at the end of the
314*b1cdbd2cSJim Jagielski		animation.
315*b1cdbd2cSJim Jagielski	 */
316*b1cdbd2cSJim Jagielski	[property] boolean TextAnimationStopInside;
317*b1cdbd2cSJim Jagielski
318*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
319*b1cdbd2cSJim Jagielski
320*b1cdbd2cSJim Jagielski	/** This value selects the writing mode for the text.
321*b1cdbd2cSJim Jagielski	 */
322*b1cdbd2cSJim Jagielski	[property] ::com::sun::star::text::WritingMode TextWritingMode;
323*b1cdbd2cSJim Jagielski};
324*b1cdbd2cSJim Jagielski
325*b1cdbd2cSJim Jagielski//=============================================================================
326*b1cdbd2cSJim Jagielski
327*b1cdbd2cSJim Jagielski}; }; }; };
328*b1cdbd2cSJim Jagielski
329*b1cdbd2cSJim Jagielski#endif
330*b1cdbd2cSJim Jagielski
331