1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
27 #ifndef __com_sun_star_text_BaseFrameProperties_idl__
28 #define __com_sun_star_text_BaseFrameProperties_idl__
30 #ifndef __com_sun_star_style_GraphicLocation_idl__
31 #include
<com
/sun
/star
/style
/GraphicLocation.idl
>
33 #ifndef __com_sun_star_table_BorderLine_idl__
34 #include
<com
/sun
/star
/table
/BorderLine.idl
>
36 #ifndef __com_sun_star_table_ShadowFormat_idl__
37 #include
<com
/sun
/star
/table
/ShadowFormat.idl
>
39 #ifndef __com_sun_star_text_XTextFrame_idl__
40 #include
<com
/sun
/star
/text
/XTextFrame.idl
>
42 #ifndef __com_sun_star_text_WrapTextMode_idl__
43 #include
<com
/sun
/star
/text
/WrapTextMode.idl
>
45 #ifndef __com_sun_star_awt_Size_idl__
46 #include
<com
/sun
/star
/awt
/Size.idl
>
48 #ifndef __com_sun_star_util_Color_idl__
49 #include
<com
/sun
/star
/util
/Color.idl
>
51 #ifndef _com_sun_star_xml_UserDefinedAttributesSupplier_idl_
52 #include
<com
/sun
/star
/xml
/UserDefinedAttributesSupplier.idl
>
55 //=============================================================================
57 module com
{ module sun
{ module star
{ module text
{
59 //=============================================================================
61 /** specifies the properties that are provided by all text frames, graphic objects, embedded objects
64 published service BaseFrameProperties
66 /** gives access to the UserDefinedAttributes property.
69 [optional] service com
::sun
::star
::xml
::UserDefinedAttributesSupplier
;
71 //-------------------------------------------------------------------------
72 /** contains the number of the page where the objects are anchored.
73 <p> The value is valid only if the
75 <const>TextContentAnchorType::AT_PAGE</const>.</p>
77 [property
] short AnchorPageNo
;
78 //-------------------------------------------------------------------------
79 /** contains the text frame the current frame is anchored to.
80 <p> The value is valid only if the
81 AnchorType is <const>TextContentAnchorType::AT_FRAME</const>.</p>
83 [property
] com
::sun
::star
::text
::XTextFrame AnchorFrame
;
84 //-------------------------------------------------------------------------
85 /** contains the color of the background of the object.
87 [property
] com
::sun
::star
::util
::Color BackColor
;
88 //-------------------------------------------------------------------------
89 /** contains the URL for the background graphic.
91 [property
] string BackGraphicURL
;
93 //-------------------------------------------------------------------------
94 /** contains the name of the file filter for the background graphic.
96 [property
] string BackGraphicFilter
;
98 //-------------------------------------------------------------------------
99 /** determines the position of the background graphic.
101 [property
] com
::sun
::star
::style
::GraphicLocation BackGraphicLocation
;
103 //-------------------------------------------------------------------------
104 /** contains the left border of the object.
106 @see BaseFrame::com::sun::star::table::BorderLine
108 [property
] com
::sun
::star
::table
::BorderLine LeftBorder
;
110 //-------------------------------------------------------------------------
111 /** contains the right border of the object.
113 @see BaseFrame::com::sun::star::table::BorderLine
115 [property
] com
::sun
::star
::table
::BorderLine RightBorder
;
117 //-------------------------------------------------------------------------
118 /** contains the top border of the object.
120 @see BaseFrame::com::sun::star::table::BorderLine
122 [property
] com
::sun
::star
::table
::BorderLine TopBorder
;
124 //-------------------------------------------------------------------------
125 /** contains the bottom border of the object.
127 @see BaseFrame::com::sun::star::table::BorderLine
129 [property
] com
::sun
::star
::table
::BorderLine BottomBorder
;
131 //-------------------------------------------------------------------------
132 /** contains the distance from the border to the object.
134 [property
] long BorderDistance
;
136 //-------------------------------------------------------------------------
137 /** contains the distance from the left border to the object.
139 [property
] long LeftBorderDistance
;
141 //-------------------------------------------------------------------------
142 /** contains the distance from the right border to the object.
144 [property
] long RightBorderDistance
;
146 //-------------------------------------------------------------------------
147 /** contains the distance from the top border to the object.
149 [property
] long TopBorderDistance
;
151 //-------------------------------------------------------------------------
152 /** contains the distance from the bottom border to the object.
154 [property
] long BottomBorderDistance
;
156 //-------------------------------------------------------------------------
157 /** If TRUE, the "BackColor" is ignored.
159 [property
] boolean BackTransparent
;
161 //-------------------------------------------------------------------------
163 /** determines if the content is protected.
165 [property
] boolean ContentProtected
;
166 //-------------------------------------------------------------------------
167 /** contains the left margin of the object.
169 [property
] long LeftMargin
;
171 //-------------------------------------------------------------------------
172 /** contains the right margin of the object.
174 [property
] long RightMargin
;
176 //-------------------------------------------------------------------------
178 /** contains the top margin of the object.
180 [property
] long TopMargin
;
182 //-------------------------------------------------------------------------
183 /** contains the bottom margin of the object.
185 [property
] long BottomMargin
;
187 //-------------------------------------------------------------------------
188 /** contains the height of the object (1/100 mm).
189 <p>It is only valid if <member>TextEmbeddedObject::RelativeHeight</member> is zero.</p>
191 [property
] long Height
;
193 //-------------------------------------------------------------------------
194 /** contains the width of the object (1/100 mm).
195 <p>It is only valid if <member>TextEmbeddedObject::RelativeWidth</member> is zero.</p>
197 [property
] long Width
;
198 //-------------------------------------------------------------------------
199 /** contains the relative height of the object.
200 <p> It is only valid if it is greater than zero.</p>
202 [property
] short RelativeHeight
;
204 //-------------------------------------------------------------------------
205 /** contains the relative width of the object.
206 <p> It is only valid if it is greater than zero. </p>
208 [property
] short RelativeWidth
;
209 //-------------------------------------------------------------------------
210 /** determins whether the width follows the height.
212 [property
] boolean IsSyncWidthToHeight
;
213 //-------------------------------------------------------------------------
214 /** determins whether the height follows the width.
216 [property
] boolean IsSyncHeightToWidth
;
217 //-------------------------------------------------------------------------
218 /** determines the horizontal orientation of the object.
220 @see BaseFrame::HoriOrientation
222 [property
] short HoriOrient
;
223 //-------------------------------------------------------------------------
224 /** contains the horizontal position of the object (1/100 mm).
225 <p> It is only valid if "HoriOrient" is HoriOrientation_NONE.</p>
227 [property
] long HoriOrientPosition
;
229 //-------------------------------------------------------------------------
230 /** determines the environment of the object to which the orientation
233 @see BaseFrame::RelOrientation
235 [property
] short HoriOrientRelation
;
237 //-------------------------------------------------------------------------
238 /** determines the vertical orientation of the object.
240 @see BaseFrame::VertOrientation
242 [property
] short VertOrient
;
244 //-------------------------------------------------------------------------
245 /** contains the vertical position of the object (1/100 mm).
247 It is only valid if <member>TextEmbeddedObject::VertOrient</member> is
248 <const>VertOrientation::NONE</const>.
250 [property
] long VertOrientPosition
;
252 //-------------------------------------------------------------------------
254 /** determines the environment of the object to which the orientation is related.
256 @see BaseFrame::RelOrientation
258 [property
] short VertOrientRelation
;
260 //-------------------------------------------------------------------------
261 /** contains the URL of a hyperlink that is set at the object.
263 [property
] string HyperLinkURL
;
265 //-------------------------------------------------------------------------
266 /** contains the name of the target for a hyperlink that is set at the object.
268 [property
] string HyperLinkTarget
;
270 //-------------------------------------------------------------------------
271 /** contains the name of the hyperlink that is set at the object.
273 [property
] string HyperLinkName
;
275 //-------------------------------------------------------------------------
276 /** determines if the object is opaque or transparent for text.
278 [property
] boolean Opaque
;
280 //-------------------------------------------------------------------------
281 /** determines if the object is mirrored on even pages.
283 [property
] boolean PageToggle
;
285 //-------------------------------------------------------------------------
286 /** determines if the position is protected.
288 [property
] boolean PositionProtected
;
290 //-------------------------------------------------------------------------
291 /** determines if the object is included in printing.
293 [property
] boolean Print
;
295 //-------------------------------------------------------------------------
296 /** contains the type of the shadow of the object.
298 [property
] com
::sun
::star
::table
::ShadowFormat ShadowFormat
;
300 //-------------------------------------------------------------------------
301 /** determines if the object gets an image map from a server.
303 [property
] boolean ServerMap
;
305 //-------------------------------------------------------------------------
306 /** contains the size of the object.
308 @see BaseFrame::Height
309 @see BaseFrame::Width
311 [property
] com
::sun
::star
::awt
::Size Size
;
313 //-------------------------------------------------------------------------
314 /** determines if the size is protected.
316 [property
] boolean SizeProtected
;
317 //-------------------------------------------------------------------------
318 /** determines the type of the surrounding text.
322 [property
] com
::sun
::star
::text
::WrapTextMode Surround
;
324 //-------------------------------------------------------------------------
325 /** determines if the text of the paragraph in which the object
326 is anchored, wraps around the object.
328 [property
] boolean SurroundAnchorOnly
;
330 //-------------------------------------------------------------------------
331 /** determines the influence of the text wrap on the positioning of the
334 <p>The value of this property is only evaluated for the positioning
335 of the shape, if the text document setting ConsiderTextWrapOnObjPos
336 is <TRUE/>. Valid values are given by <member>WrapInfluenceOnPosition</member></p>
340 [optional, property
] short WrapInfluenceOnPosition
;
342 //-------------------------------------------------------------------------
343 /** returns the actual size of the object.
345 <p>Since to obtain the correct actual size of the object not only
346 the layouting for the frame needs to be finished but the whole
347 document needs to be formatted as well. Thus if that was not done
348 previously it may take some while to retrieve this value.</p>
352 [optional, property
, maybevoid
] com
::sun
::star
::awt
::Size LayoutSize
;
354 //-------------------------------------------------------------------------
355 /** contains short title for the object
357 <p>This short title is visible as an alternative tag in HTML format.
358 Accessibility tools can read this text.</p>
362 [optional, property
] string Title
;
364 //-------------------------------------------------------------------------
365 /** contains description for the object
367 <p>The long description text can be entered to describe a object in
368 more detail to users with screen reader software. The description is
369 visible as an alternative tag for accessibility tools.</p>
373 [optional, property
] string Description
;
376 //=============================================================================