tdf#130857 qt weld: Implement QtInstanceWidget::get_text_height
[LibreOffice.git] / offapi / com / sun / star / text / BaseFrameProperties.idl
blob37ce94b62163f9caa17dbafb8fbe9ee96b18be4d
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 .
20 module com { module sun { module star { module text {
22 /** specifies the properties that are provided by all text frames, graphic objects, embedded objects
23 and frame styles.
25 published service BaseFrameProperties
27 /** gives access to the UserDefinedAttributes property.
28 @since OOo 2.1
30 [optional] service com::sun::star::xml::UserDefinedAttributesSupplier;
32 /** contains the number of the page where the objects are anchored.
33 <p> The value is valid only if the
34 AnchorType is
35 TextContentAnchorType::AT_PAGE.</p>
37 [property] short AnchorPageNo;
38 /** contains the text frame the current frame is anchored to.
39 <p> The value is valid only if the
40 AnchorType is TextContentAnchorType::AT_FRAME.</p>
42 [property] com::sun::star::text::XTextFrame AnchorFrame;
44 /** contains the color of the background of the object.
46 [property] com::sun::star::util::Color BackColor;
48 /** contains the URL for the background graphic.
50 @deprecated as of LibreOffice 6.1 - use BackGraphic instead
52 Note the new behaviour since it this was deprecated:
53 This property can only be set and only external URLs are
54 supported (no more vnd.sun.star.GraphicObject scheme). When an
55 URL is set, then it will load the graphic and set the BackGraphic
56 property.
58 [property] string BackGraphicURL;
60 /** contains the name of the file filter for the background graphic.
62 [property] string BackGraphicFilter;
64 /** determines the position of the background graphic.
66 [property] com::sun::star::style::GraphicLocation BackGraphicLocation;
68 /** contains the left border of the object.
70 @see com::sun::star::table::BorderLine
72 [property] com::sun::star::table::BorderLine LeftBorder;
74 /** contains the right border of the object.
76 @see com::sun::star::table::BorderLine
78 [property] com::sun::star::table::BorderLine RightBorder;
80 /** contains the top border of the object.
82 @see com::sun::star::table::BorderLine
84 [property] com::sun::star::table::BorderLine TopBorder;
86 /** contains the bottom border of the object.
88 @see com::sun::star::table::BorderLine
90 [property] com::sun::star::table::BorderLine BottomBorder;
92 /** contains the distance from the border to the object.
94 [property] long BorderDistance;
96 /** contains the distance from the left border to the object.
98 [property] long LeftBorderDistance;
100 /** contains the distance from the right border to the object.
102 [property] long RightBorderDistance;
104 /** contains the distance from the top border to the object.
106 [property] long TopBorderDistance;
108 /** contains the distance from the bottom border to the object.
110 [property] long BottomBorderDistance;
112 /** If TRUE, the "BackColor" is ignored.
114 [property] boolean BackTransparent;
117 /** determines if the content is protected.
119 [property] boolean ContentProtected;
120 /** contains the left margin of the object.
122 [property] long LeftMargin;
124 /** contains the right margin of the object.
126 [property] long RightMargin;
129 /** contains the top margin of the object.
131 [property] long TopMargin;
133 /** contains the bottom margin of the object.
135 [property] long BottomMargin;
137 /** contains the height of the object (1/100 mm).
138 <p>It is only valid if TextEmbeddedObject::RelativeHeight is zero.</p>
140 [property] long Height;
142 /** contains the width of the object (1/100 mm).
143 <p>It is only valid if TextEmbeddedObject::RelativeWidth is zero.</p>
145 [property] long Width;
146 /** contains the relative height of the object.
147 <p> It is only valid if it is greater than zero.</p>
149 [property] short RelativeHeight;
151 /** contains the relative width of the object.
152 <p> It is only valid if it is greater than zero. </p>
154 [property] short RelativeWidth;
155 /** determines whether the width follows the height.
157 [property] boolean IsSyncWidthToHeight;
158 /** determines whether the height follows the width.
160 [property] boolean IsSyncHeightToWidth;
161 /** determines the horizontal orientation of the object.
163 @see com::sun::star::text::HoriOrientation
165 [property] short HoriOrient;
166 /** contains the horizontal position of the object (1/100 mm).
167 <p> It is only valid if HoriOrient is com::sun::star::text::HoriOrientation::NONE.</p>
169 [property] long HoriOrientPosition;
171 /** determines the environment of the object to which the orientation
172 is related.
174 @see com::sun::star::text::RelOrientation
176 [property] short HoriOrientRelation;
178 /** determines the vertical orientation of the object.
180 @see com::sun::star::text::VertOrientation
182 [property] short VertOrient;
184 /** contains the vertical position of the object (1/100 mm).
186 It is only valid if VertOrient is
187 com::sun::star::text::VertOrientation::NONE.
189 [property] long VertOrientPosition;
192 /** determines the environment of the object to which the orientation is related.
194 @see com::sun::star::text::RelOrientation
196 [property] short VertOrientRelation;
198 /** contains the URL of a hyperlink that is set at the object.
200 [property] string HyperLinkURL;
202 /** contains the name of the target for a hyperlink that is set at the object.
204 [property] string HyperLinkTarget;
206 /** contains the name of the hyperlink that is set at the object.
208 [property] string HyperLinkName;
210 /** determines if the object is opaque or transparent for text.
212 [property] boolean Opaque;
214 /** determines if the object is mirrored on even pages.
216 [property] boolean PageToggle;
218 /** determines if the position is protected.
220 [property] boolean PositionProtected;
222 /** determines if the object is included in printing.
224 [property] boolean Print;
226 /** contains the type of the shadow of the object.
228 [property] com::sun::star::table::ShadowFormat ShadowFormat;
230 /** determines if the object gets an image map from a server.
232 [property] boolean ServerMap;
234 /** contains the size of the object.
236 @see BaseFrame::Height
237 @see BaseFrame::Width
239 [property] com::sun::star::awt::Size Size;
241 /** determines if the size is protected.
243 [property] boolean SizeProtected;
244 /** determines the type of the surrounding text.
246 @deprecated
248 [property] com::sun::star::text::WrapTextMode Surround;
250 /** determines if the text of the paragraph in which the object
251 is anchored, wraps around the object.
253 [property] boolean SurroundAnchorOnly;
255 /** determines the influence of the text wrap on the positioning of the
256 shape
258 <p>The value of this property is only evaluated for the positioning
259 of the shape, if the text document setting ConsiderTextWrapOnObjPos
260 is `TRUE`. Valid values are given by #WrapInfluenceOnPosition</p>
262 @since OOo 2.0
264 [optional, property] short WrapInfluenceOnPosition;
266 /** returns the actual size of the object.
268 <p>Since to obtain the correct actual size of the object not only
269 the layouting for the frame needs to be finished but the whole
270 document needs to be formatted as well. Thus if that was not done
271 previously it may take some while to retrieve this value.</p>
273 @since OOo 2.0.4
275 [optional, property, maybevoid] com::sun::star::awt::Size LayoutSize;
277 /** contains short title for the object
279 <p>This short title is visible as an alternative tag in HTML format.
280 Accessibility tools can read this text.</p>
282 @since OOo 3.2
284 [optional, property] string Title;
286 /** contains description for the object
288 <p>The long description text can be entered to describe an object in
289 more detail to users with screen reader software. The description is
290 visible as an alternative tag for accessibility tools.</p>
292 @since OOo 3.2
294 [optional, property] string Description;
295 /** This enumeration selects the style the area will be filled with.
297 <p>Currently only set for gradients.</p>
299 @since LibreOffice 4.1
301 [optional, property] com::sun::star::drawing::FillStyle FillStyle;
302 /** If the property #FillStyle is set to
303 FillStyle::GRADIENT, this describes the gradient used.
305 @since LibreOffice 4.1
307 [optional, property] com::sun::star::awt::Gradient FillGradient;
308 /** If the property #FillStyle is set to
309 FillStyle::GRADIENT, this is the name of the gradient used.
311 @since LibreOffice 4.1
313 [optional, property] string FillGradientName;
315 /** This defines the degree of transparence of the shadow in percent.
317 <p>This is the same as setting the Color member of the
318 #ShadowFormat property to an ARGB color.</p>
320 @since LibreOffice 4.2
322 [optional, property] short ShadowTransparence;
324 /** Grab bag of frame properties, used as a string-any map for interim interop purposes.
326 @since LibreOffice 4.2
328 <p>This property is intentionally not handled by the ODF filter. Any
329 member that should be handled there should be first moved out from this grab
330 bag to a separate property.</p>
332 [optional, property] sequence<com::sun::star::beans::PropertyValue> FrameInteropGrabBag;
334 /** contains the relation of the relative height of the object.
335 <p> It is only valid if RelativeHeight is greater than zero.</p>
337 @see com::sun::star::text::RelOrientation
338 @since LibreOffice 4.3
340 [optional, property] short RelativeHeightRelation;
342 /** contains the relation of the relative width of the object.
343 <p> It is only valid if RelativeWidth is greater than zero.</p>
345 @see com::sun::star::text::RelOrientation
346 @since LibreOffice 4.3
348 [optional, property] short RelativeWidthRelation;
350 /** contains the graphic for the background.
352 @since LibreOffice 6.1
354 [optional, property] com::sun::star::graphic::XGraphic BackGraphic;
356 /** This defines if the frame is allowed to overlap with other anchored objects.
357 @since LibreOffice 6.4
359 [optional, property] boolean AllowOverlap;
361 /** Contains popup text for the frame, used to for tooltip purposes if it's non-empty.
363 @since LibreOffice 7.4
365 [optional, property] string Tooltip;
367 /** Determines if the frame is purely decorative.
369 If `TRUE`, it is considered not part of the document content,
370 and may be ignored by assistive technologies.
372 @since LibreOffice 7.5
374 [optional, property] boolean Decorative;
376 /** If `TRUE`, the frame is allowed to be split at page breaks.
378 @since LibreOffice 7.6
380 [optional, property] boolean IsSplitAllowed;
382 /** If `TRUE`, text wraps around a split fly on all pages.
384 @since LibreOffice 24.2
386 [optional, property] boolean WrapTextAtFlyStart;
391 }; }; }; };
393 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */