1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: BaseFrameProperties.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_text_BaseFrameProperties_idl__
31 #define __com_sun_star_text_BaseFrameProperties_idl__
33 #ifndef __com_sun_star_style_GraphicLocation_idl__
34 #include
<com
/sun
/star
/style
/GraphicLocation.idl
>
36 #ifndef __com_sun_star_table_BorderLine_idl__
37 #include
<com
/sun
/star
/table
/BorderLine.idl
>
39 #ifndef __com_sun_star_table_ShadowFormat_idl__
40 #include
<com
/sun
/star
/table
/ShadowFormat.idl
>
42 #ifndef __com_sun_star_text_XTextFrame_idl__
43 #include
<com
/sun
/star
/text
/XTextFrame.idl
>
45 #ifndef __com_sun_star_text_WrapTextMode_idl__
46 #include
<com
/sun
/star
/text
/WrapTextMode.idl
>
48 #ifndef __com_sun_star_awt_Size_idl__
49 #include
<com
/sun
/star
/awt
/Size.idl
>
51 #ifndef __com_sun_star_util_Color_idl__
52 #include
<com
/sun
/star
/util
/Color.idl
>
54 #ifndef _com_sun_star_xml_UserDefinedAttributesSupplier_idl_
55 #include
<com
/sun
/star
/xml
/UserDefinedAttributesSupplier.idl
>
58 //=============================================================================
60 module com
{ module sun
{ module star
{ module text
{
62 //=============================================================================
64 /** specifies the properties that are provided by all text frames, graphic objects, embedded objects
67 published service BaseFrameProperties
69 /** gives access to the UserDefinedAttributes property.
72 [optional] service com
::sun
::star
::xml
::UserDefinedAttributesSupplier
;
74 //-------------------------------------------------------------------------
75 /** contains the number of the page where the objects are anchored.
76 <p> The value is valid only if the
78 <const>TextContentAnchorType::AT_PAGE</const>.</p>
80 [property
] short AnchorPageNo
;
81 //-------------------------------------------------------------------------
82 /** contains the text frame the current frame is anchored to.
83 <p> The value is valid only if the
84 AnchorType is <const>TextContentAnchorType::AT_FRAME</const>.</p>
86 [property
] com
::sun
::star
::text
::XTextFrame AnchorFrame
;
87 //-------------------------------------------------------------------------
88 /** contains the color of the background of the object.
90 [property
] com
::sun
::star
::util
::Color BackColor
;
91 //-------------------------------------------------------------------------
92 /** contains the URL for the background graphic.
94 [property
] string BackGraphicURL
;
96 //-------------------------------------------------------------------------
97 /** contains the name of the file filter for the background graphic.
99 [property
] string BackGraphicFilter
;
101 //-------------------------------------------------------------------------
102 /** determines the position of the background graphic.
104 [property
] com
::sun
::star
::style
::GraphicLocation BackGraphicLocation
;
106 //-------------------------------------------------------------------------
107 /** contains the left border of the object.
109 @see BaseFrame::com::sun::star::table::BorderLine
111 [property
] com
::sun
::star
::table
::BorderLine LeftBorder
;
113 //-------------------------------------------------------------------------
114 /** contains the right border of the object.
116 @see BaseFrame::com::sun::star::table::BorderLine
118 [property
] com
::sun
::star
::table
::BorderLine RightBorder
;
120 //-------------------------------------------------------------------------
121 /** contains the top border of the object.
123 @see BaseFrame::com::sun::star::table::BorderLine
125 [property
] com
::sun
::star
::table
::BorderLine TopBorder
;
127 //-------------------------------------------------------------------------
128 /** contains the bottom border of the object.
130 @see BaseFrame::com::sun::star::table::BorderLine
132 [property
] com
::sun
::star
::table
::BorderLine BottomBorder
;
134 //-------------------------------------------------------------------------
135 /** contains the distance from the border to the object.
137 [property
] long BorderDistance
;
139 //-------------------------------------------------------------------------
140 /** contains the distance from the left border to the object.
142 [property
] long LeftBorderDistance
;
144 //-------------------------------------------------------------------------
145 /** contains the distance from the right border to the object.
147 [property
] long RightBorderDistance
;
149 //-------------------------------------------------------------------------
150 /** contains the distance from the top border to the object.
152 [property
] long TopBorderDistance
;
154 //-------------------------------------------------------------------------
155 /** contains the distance from the bottom border to the object.
157 [property
] long BottomBorderDistance
;
159 //-------------------------------------------------------------------------
160 /** If TRUE, the "BackColor" is ignored.
162 [property
] boolean BackTransparent
;
164 //-------------------------------------------------------------------------
166 /** determines if the content is protected.
168 [property
] boolean ContentProtected
;
169 //-------------------------------------------------------------------------
170 /** contains the left margin of the object.
172 [property
] long LeftMargin
;
174 //-------------------------------------------------------------------------
175 /** contains the right margin of the object.
177 [property
] long RightMargin
;
179 //-------------------------------------------------------------------------
181 /** contains the top margin of the object.
183 [property
] long TopMargin
;
185 //-------------------------------------------------------------------------
186 /** contains the bottom margin of the object.
188 [property
] long BottomMargin
;
190 //-------------------------------------------------------------------------
191 /** contains the height of the object (1/100 mm).
192 <p>It is only valid if <member>TextEmbeddedObject::RelativeHeight</member> is zero.</p>
194 [property
] long Height
;
196 //-------------------------------------------------------------------------
197 /** contains the width of the object (1/100 mm).
198 <p>It is only valid if <member>TextEmbeddedObject::RelativeWidth</member> is zero.</p>
200 [property
] long Width
;
201 //-------------------------------------------------------------------------
202 /** contains the relative height of the object.
203 <p> It is only valid if it is greater than zero.</p>
205 [property
] short RelativeHeight
;
207 //-------------------------------------------------------------------------
208 /** contains the relative width of the object.
209 <p> It is only valid if it is greater than zero. </p>
211 [property
] short RelativeWidth
;
212 //-------------------------------------------------------------------------
213 /** determins whether the width follows the height.
215 [property
] boolean IsSyncWidthToHeight
;
216 //-------------------------------------------------------------------------
217 /** determins whether the height follows the width.
219 [property
] boolean IsSyncHeightToWidth
;
220 //-------------------------------------------------------------------------
221 /** determines the horizontal orientation of the object.
223 @see BaseFrame::HoriOrientation
225 [property
] short HoriOrient
;
226 //-------------------------------------------------------------------------
227 /** contains the horizontal position of the object (1/100 mm).
228 <p> It is only valid if "HoriOrient" is HoriOrientation_NONE.</p>
230 [property
] long HoriOrientPosition
;
232 //-------------------------------------------------------------------------
233 /** determines the environment of the object to which the orientation
236 @see BaseFrame::RelOrientation
238 [property
] short HoriOrientRelation
;
240 //-------------------------------------------------------------------------
241 /** determines the vertical orientation of the object.
243 @see BaseFrame::VertOrientation
245 [property
] short VertOrient
;
247 //-------------------------------------------------------------------------
248 /** contains the vertical position of the object (1/100 mm).
250 It is only valid if <member>TextEmbeddedObject::VertOrient</member> is
251 <const>VertOrientation::NONE</const>.
253 [property
] long VertOrientPosition
;
255 //-------------------------------------------------------------------------
257 /** determines the environment of the object to which the orientation is related.
259 @see BaseFrame::RelOrientation
261 [property
] short VertOrientRelation
;
263 //-------------------------------------------------------------------------
264 /** contains the URL of a hyperlink that is set at the object.
266 [property
] string HyperLinkURL
;
268 //-------------------------------------------------------------------------
269 /** contains the name of the target for a hyperlink that is set at the object.
271 [property
] string HyperLinkTarget
;
273 //-------------------------------------------------------------------------
274 /** contains the name of the hyperlink that is set at the object.
276 [property
] string HyperLinkName
;
278 //-------------------------------------------------------------------------
279 /** determines if the object is opaque or transparent for text.
281 [property
] boolean Opaque
;
283 //-------------------------------------------------------------------------
284 /** determines if the object is mirrored on even pages.
286 [property
] boolean PageToggle
;
288 //-------------------------------------------------------------------------
289 /** determines if the position is protected.
291 [property
] boolean PositionProtected
;
293 //-------------------------------------------------------------------------
294 /** determines if the object is included in printing.
296 [property
] boolean Print
;
298 //-------------------------------------------------------------------------
299 /** contains the type of the shadow of the object.
301 [property
] com
::sun
::star
::table
::ShadowFormat ShadowFormat
;
303 //-------------------------------------------------------------------------
304 /** determines if the object gets an image map from a server.
306 [property
] boolean ServerMap
;
308 //-------------------------------------------------------------------------
309 /** contains the size of the object.
311 @see BaseFrame::Height
312 @see BaseFrame::Width
314 [property
] com
::sun
::star
::awt
::Size Size
;
316 //-------------------------------------------------------------------------
317 /** determines if the size is protected.
319 [property
] boolean SizeProtected
;
320 //-------------------------------------------------------------------------
321 /** determines the type of the surrounding text.
325 [property
] com
::sun
::star
::text
::WrapTextMode Surround
;
327 //-------------------------------------------------------------------------
328 /** determines if the text of the paragraph in which the object
329 is anchored, wraps around the object.
331 [property
] boolean SurroundAnchorOnly
;
333 //-------------------------------------------------------------------------
334 /** determines the influence of the text wrap on the positioning of the
337 <p>The value of this property is only evaluated for the positioning
338 of the shape, if the text document setting ConsiderTextWrapOnObjPos
339 is <TRUE/>. Valid values are given by <member>WrapInfluenceOnPosition</member></p>
343 [optional, property
] short WrapInfluenceOnPosition
;
345 //-------------------------------------------------------------------------
346 /** returns the actual size of the object.
348 <p>Since to obtain the correct actual size of the object not only
349 the layouting for the frame needs to be finished but the whole
350 document needs to be formatted as well. Thus if that was not done
351 previously it may take some while to retrieve this value.</p>
355 [optional, property
, maybevoid
] com
::sun
::star
::awt
::Size LayoutSize
;
357 //-------------------------------------------------------------------------
358 /** contains short title for the object
360 <p>This short title is visible as an alternative tag in HTML format.
361 Accessibility tools can read this text.</p>
365 [optional, property
] string Title
;
367 //-------------------------------------------------------------------------
368 /** contains description for the object
370 <p>The long description text can be entered to describe a object in
371 more detail to users with screen reader software. The description is
372 visible as an alternative tag for accessibility tools.</p>
376 [optional, property
] string Description
;
379 //=============================================================================