1d1766043SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4d1766043SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5d1766043SAndrew Rist * distributed with this work for additional information
6d1766043SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the
8d1766043SAndrew Rist * "License"); you may not use this file except in compliance
9d1766043SAndrew Rist * with the License.  You may obtain a copy of the License at
10d1766043SAndrew Rist *
11d1766043SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12d1766043SAndrew Rist *
13d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing,
14d1766043SAndrew Rist * software distributed under the License is distributed on an
15d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16d1766043SAndrew Rist * KIND, either express or implied.  See the License for the
17d1766043SAndrew Rist * specific language governing permissions and limitations
18d1766043SAndrew Rist * under the License.
19d1766043SAndrew Rist *
20d1766043SAndrew Rist *************************************************************/
21d1766043SAndrew Rist
22d1766043SAndrew Rist
23cdf0e10cSrcweir#ifndef __com_sun_star_text_BaseFrameProperties_idl__
24cdf0e10cSrcweir#define __com_sun_star_text_BaseFrameProperties_idl__
25cdf0e10cSrcweir
26cdf0e10cSrcweir#ifndef __com_sun_star_style_GraphicLocation_idl__
27cdf0e10cSrcweir#include <com/sun/star/style/GraphicLocation.idl>
28cdf0e10cSrcweir#endif
29cdf0e10cSrcweir#ifndef __com_sun_star_table_BorderLine_idl__
30cdf0e10cSrcweir#include <com/sun/star/table/BorderLine.idl>
31cdf0e10cSrcweir#endif
32cdf0e10cSrcweir#ifndef __com_sun_star_table_ShadowFormat_idl__
33cdf0e10cSrcweir#include <com/sun/star/table/ShadowFormat.idl>
34cdf0e10cSrcweir#endif
35cdf0e10cSrcweir#ifndef __com_sun_star_text_XTextFrame_idl__
36cdf0e10cSrcweir#include <com/sun/star/text/XTextFrame.idl>
37cdf0e10cSrcweir#endif
38cdf0e10cSrcweir#ifndef __com_sun_star_text_WrapTextMode_idl__
39cdf0e10cSrcweir#include <com/sun/star/text/WrapTextMode.idl>
40cdf0e10cSrcweir#endif
41cdf0e10cSrcweir#ifndef __com_sun_star_awt_Size_idl__
42cdf0e10cSrcweir#include <com/sun/star/awt/Size.idl>
43cdf0e10cSrcweir#endif
44cdf0e10cSrcweir#ifndef __com_sun_star_util_Color_idl__
45cdf0e10cSrcweir#include <com/sun/star/util/Color.idl>
46cdf0e10cSrcweir#endif
47cdf0e10cSrcweir#ifndef _com_sun_star_xml_UserDefinedAttributesSupplier_idl_
48cdf0e10cSrcweir#include <com/sun/star/xml/UserDefinedAttributesSupplier.idl>
49cdf0e10cSrcweir#endif
50cdf0e10cSrcweir
51cdf0e10cSrcweir//=============================================================================
52cdf0e10cSrcweir
53cdf0e10cSrcweir module com {  module sun {  module star {  module text {
54cdf0e10cSrcweir
55cdf0e10cSrcweir//=============================================================================
56cdf0e10cSrcweir
57cdf0e10cSrcweir/** specifies the properties that are provided by all text frames, graphic objects, embedded objects
58cdf0e10cSrcweir and frame styles.
59cdf0e10cSrcweir */
60cdf0e10cSrcweirpublished service BaseFrameProperties
61cdf0e10cSrcweir{
62cdf0e10cSrcweir    /** gives access to the UserDefinedAttributes property.
63*2a413f17SJürgen Schmidt        @since OpenOffice 2.1
64cdf0e10cSrcweir     */
65cdf0e10cSrcweir    [optional] service com::sun::star::xml::UserDefinedAttributesSupplier;
66cdf0e10cSrcweir
67cdf0e10cSrcweir    //-------------------------------------------------------------------------
68cdf0e10cSrcweir	/** contains the number of the page where the objects are anchored.
69cdf0e10cSrcweir		<p> The value is valid only if the
70cdf0e10cSrcweir		AnchorType is
71cdf0e10cSrcweir		<const>TextContentAnchorType::AT_PAGE</const>.</p>
72cdf0e10cSrcweir	 */
73cdf0e10cSrcweir	[property] short AnchorPageNo;
74cdf0e10cSrcweir    //-------------------------------------------------------------------------
75cdf0e10cSrcweir    /** contains the text frame the current frame is anchored to.
76cdf0e10cSrcweir		<p> The value is valid only if the
77cdf0e10cSrcweir        AnchorType is <const>TextContentAnchorType::AT_FRAME</const>.</p>
78cdf0e10cSrcweir	 */
79cdf0e10cSrcweir    [property] com::sun::star::text::XTextFrame AnchorFrame;
80cdf0e10cSrcweir    //-------------------------------------------------------------------------
81cdf0e10cSrcweir	/** contains the color of the background of the object.
82cdf0e10cSrcweir	 */
83cdf0e10cSrcweir	[property] com::sun::star::util::Color BackColor;
84cdf0e10cSrcweir	//-------------------------------------------------------------------------
85cdf0e10cSrcweir	/** contains the URL for the background graphic.
86cdf0e10cSrcweir	 */
87cdf0e10cSrcweir	[property] string BackGraphicURL;
88cdf0e10cSrcweir
89cdf0e10cSrcweir	//-------------------------------------------------------------------------
90cdf0e10cSrcweir	/** contains the name of the file filter for the background graphic.
91cdf0e10cSrcweir	 */
92cdf0e10cSrcweir	[property] string BackGraphicFilter;
93cdf0e10cSrcweir
94cdf0e10cSrcweir	//-------------------------------------------------------------------------
95cdf0e10cSrcweir	/** determines the position of the background graphic.
96cdf0e10cSrcweir	 */
97cdf0e10cSrcweir	[property] com::sun::star::style::GraphicLocation BackGraphicLocation;
98cdf0e10cSrcweir
99cdf0e10cSrcweir	//-------------------------------------------------------------------------
100cdf0e10cSrcweir	/** contains the left border of the object.
101cdf0e10cSrcweir
102cdf0e10cSrcweir		@see BaseFrame::com::sun::star::table::BorderLine
103cdf0e10cSrcweir	 */
104cdf0e10cSrcweir	[property] com::sun::star::table::BorderLine LeftBorder;
105cdf0e10cSrcweir
106cdf0e10cSrcweir	//-------------------------------------------------------------------------
107cdf0e10cSrcweir	/** contains the right border of the object.
108cdf0e10cSrcweir
109cdf0e10cSrcweir		@see BaseFrame::com::sun::star::table::BorderLine
110cdf0e10cSrcweir	 */
111cdf0e10cSrcweir	[property] com::sun::star::table::BorderLine RightBorder;
112cdf0e10cSrcweir
113cdf0e10cSrcweir	//-------------------------------------------------------------------------
114cdf0e10cSrcweir	/** contains the top border of the object.
115cdf0e10cSrcweir
116cdf0e10cSrcweir		@see BaseFrame::com::sun::star::table::BorderLine
117cdf0e10cSrcweir	 */
118cdf0e10cSrcweir	[property] com::sun::star::table::BorderLine TopBorder;
119cdf0e10cSrcweir
120cdf0e10cSrcweir	//-------------------------------------------------------------------------
121cdf0e10cSrcweir	/** contains the bottom border of the object.
122cdf0e10cSrcweir
123cdf0e10cSrcweir		@see BaseFrame::com::sun::star::table::BorderLine
124cdf0e10cSrcweir	 */
125cdf0e10cSrcweir	[property] com::sun::star::table::BorderLine BottomBorder;
126cdf0e10cSrcweir
127cdf0e10cSrcweir	//-------------------------------------------------------------------------
128cdf0e10cSrcweir	/** contains the distance from the border to the object.
129cdf0e10cSrcweir	 */
130cdf0e10cSrcweir	[property] long BorderDistance;
131cdf0e10cSrcweir
132cdf0e10cSrcweir	//-------------------------------------------------------------------------
133cdf0e10cSrcweir	/** contains the distance from the left border to the object.
134cdf0e10cSrcweir	 */
135cdf0e10cSrcweir	[property] long LeftBorderDistance;
136cdf0e10cSrcweir
137cdf0e10cSrcweir	//-------------------------------------------------------------------------
138cdf0e10cSrcweir	/** contains the distance from the right border to the object.
139cdf0e10cSrcweir	 */
140cdf0e10cSrcweir	[property] long RightBorderDistance;
141cdf0e10cSrcweir
142cdf0e10cSrcweir	//-------------------------------------------------------------------------
143cdf0e10cSrcweir	/** contains the distance from the top border to the object.
144cdf0e10cSrcweir	 */
145cdf0e10cSrcweir	[property] long TopBorderDistance;
146cdf0e10cSrcweir
147cdf0e10cSrcweir	//-------------------------------------------------------------------------
148cdf0e10cSrcweir	/** contains the distance from the bottom border to the object.
149cdf0e10cSrcweir	 */
150cdf0e10cSrcweir	[property] long BottomBorderDistance;
151cdf0e10cSrcweir
152cdf0e10cSrcweir	//-------------------------------------------------------------------------
153cdf0e10cSrcweir	/** If TRUE, the "BackColor" is ignored.
154cdf0e10cSrcweir	 */
155cdf0e10cSrcweir	[property] boolean BackTransparent;
156cdf0e10cSrcweir
157cdf0e10cSrcweir	//-------------------------------------------------------------------------
158cdf0e10cSrcweir
159cdf0e10cSrcweir	/** determines if the content is protected.
160cdf0e10cSrcweir	 */
161cdf0e10cSrcweir	[property] boolean ContentProtected;
162cdf0e10cSrcweir    //-------------------------------------------------------------------------
163cdf0e10cSrcweir	/** contains the left margin of the object.
164cdf0e10cSrcweir	 */
165cdf0e10cSrcweir	[property] long LeftMargin;
166cdf0e10cSrcweir
167cdf0e10cSrcweir	//-------------------------------------------------------------------------
168cdf0e10cSrcweir	/** contains the right margin of the object.
169cdf0e10cSrcweir	 */
170cdf0e10cSrcweir	[property] long RightMargin;
171cdf0e10cSrcweir
172cdf0e10cSrcweir	//-------------------------------------------------------------------------
173cdf0e10cSrcweir
174cdf0e10cSrcweir	/** contains the top margin of the object.
175cdf0e10cSrcweir	 */
176cdf0e10cSrcweir	[property] long TopMargin;
177cdf0e10cSrcweir
178cdf0e10cSrcweir	//-------------------------------------------------------------------------
179cdf0e10cSrcweir	/** contains the bottom margin of the object.
180cdf0e10cSrcweir	 */
181cdf0e10cSrcweir	[property] long BottomMargin;
182cdf0e10cSrcweir
183cdf0e10cSrcweir	//-------------------------------------------------------------------------
184cdf0e10cSrcweir	/** contains the height of the object (1/100 mm).
185cdf0e10cSrcweir		<p>It is only valid if <member>TextEmbeddedObject::RelativeHeight</member> is zero.</p>
186cdf0e10cSrcweir	 */
187cdf0e10cSrcweir	[property] long Height;
188cdf0e10cSrcweir
189cdf0e10cSrcweir	//-------------------------------------------------------------------------
190cdf0e10cSrcweir	/** contains the width of the object (1/100 mm).
191cdf0e10cSrcweir		<p>It is only valid if <member>TextEmbeddedObject::RelativeWidth</member> is zero.</p>
192cdf0e10cSrcweir	 */
193cdf0e10cSrcweir	[property] long Width;
194cdf0e10cSrcweir	//-------------------------------------------------------------------------
195cdf0e10cSrcweir	/** contains the relative height of the object.
196cdf0e10cSrcweir		<p> It is only valid if it is greater than zero.</p>
197cdf0e10cSrcweir	 */
198cdf0e10cSrcweir	[property] short RelativeHeight;
199cdf0e10cSrcweir
200cdf0e10cSrcweir	//-------------------------------------------------------------------------
201cdf0e10cSrcweir	/** contains the relative width of the object.
202cdf0e10cSrcweir		<p> It is only valid if it is greater than zero. </p>
203cdf0e10cSrcweir	 */
204cdf0e10cSrcweir	[property] short RelativeWidth;
205cdf0e10cSrcweir	//-------------------------------------------------------------------------
206cdf0e10cSrcweir	/** determins whether the width follows the height.
207cdf0e10cSrcweir	 */
208cdf0e10cSrcweir	[property] boolean IsSyncWidthToHeight;
209cdf0e10cSrcweir	//-------------------------------------------------------------------------
210cdf0e10cSrcweir	/** determins whether the height follows the width.
211cdf0e10cSrcweir	 */
212cdf0e10cSrcweir	[property] boolean IsSyncHeightToWidth;
213cdf0e10cSrcweir	//-------------------------------------------------------------------------
214cdf0e10cSrcweir	/** determines the horizontal orientation of the object.
215cdf0e10cSrcweir
216cdf0e10cSrcweir		@see BaseFrame::HoriOrientation
217cdf0e10cSrcweir	 */
218cdf0e10cSrcweir	[property] short HoriOrient;
219cdf0e10cSrcweir	//-------------------------------------------------------------------------
220cdf0e10cSrcweir	/** contains the horizontal position of the object (1/100 mm).
221cdf0e10cSrcweir		<p> It is only valid if "HoriOrient" is HoriOrientation_NONE.</p>
222cdf0e10cSrcweir	 */
223cdf0e10cSrcweir	[property] long HoriOrientPosition;
224cdf0e10cSrcweir
225cdf0e10cSrcweir	//-------------------------------------------------------------------------
226cdf0e10cSrcweir	/** determines the environment of the object to which the orientation
227cdf0e10cSrcweir		is related.
228cdf0e10cSrcweir
229cdf0e10cSrcweir		@see BaseFrame::RelOrientation
230cdf0e10cSrcweir	 */
231cdf0e10cSrcweir	[property] short HoriOrientRelation;
232cdf0e10cSrcweir
233cdf0e10cSrcweir	//-------------------------------------------------------------------------
234cdf0e10cSrcweir	/** determines the vertical orientation of the object.
235cdf0e10cSrcweir
236cdf0e10cSrcweir		@see BaseFrame::VertOrientation
237cdf0e10cSrcweir	 */
238cdf0e10cSrcweir	[property] short VertOrient;
239cdf0e10cSrcweir
240cdf0e10cSrcweir	//-------------------------------------------------------------------------
241cdf0e10cSrcweir	/** contains the vertical position of the object (1/100 mm).
242cdf0e10cSrcweir
243cdf0e10cSrcweir		It is only valid if <member>TextEmbeddedObject::VertOrient</member> is
244cdf0e10cSrcweir		<const>VertOrientation::NONE</const>.
245cdf0e10cSrcweir	 */
246cdf0e10cSrcweir	[property] long VertOrientPosition;
247cdf0e10cSrcweir
248cdf0e10cSrcweir	//-------------------------------------------------------------------------
249cdf0e10cSrcweir
250cdf0e10cSrcweir	/** determines the environment of the object to which the orientation is related.
251cdf0e10cSrcweir
252cdf0e10cSrcweir		@see BaseFrame::RelOrientation
253cdf0e10cSrcweir	 */
254cdf0e10cSrcweir	[property] short VertOrientRelation;
255cdf0e10cSrcweir
256cdf0e10cSrcweir	//-------------------------------------------------------------------------
257cdf0e10cSrcweir	/** contains the URL of a hyperlink that is set at the object.
258cdf0e10cSrcweir	 */
259cdf0e10cSrcweir	[property] string HyperLinkURL;
260cdf0e10cSrcweir
261cdf0e10cSrcweir	//-------------------------------------------------------------------------
262cdf0e10cSrcweir	/** contains the name of the target for a hyperlink that is set at the object.
263cdf0e10cSrcweir	 */
264cdf0e10cSrcweir	[property] string HyperLinkTarget;
265cdf0e10cSrcweir
266cdf0e10cSrcweir	//-------------------------------------------------------------------------
267cdf0e10cSrcweir	/** contains the name of the hyperlink that is set at the object.
268cdf0e10cSrcweir	 */
269cdf0e10cSrcweir	[property] string HyperLinkName;
270cdf0e10cSrcweir
271cdf0e10cSrcweir	//-------------------------------------------------------------------------
272cdf0e10cSrcweir	/** determines if the object is opaque or transparent for text.
273cdf0e10cSrcweir	 */
274cdf0e10cSrcweir	[property] boolean Opaque;
275cdf0e10cSrcweir
276cdf0e10cSrcweir	//-------------------------------------------------------------------------
277cdf0e10cSrcweir	/** determines if the object is mirrored on even pages.
278cdf0e10cSrcweir	 */
279cdf0e10cSrcweir	[property] boolean PageToggle;
280cdf0e10cSrcweir
281cdf0e10cSrcweir	//-------------------------------------------------------------------------
282cdf0e10cSrcweir	/** determines if the position is protected.
283cdf0e10cSrcweir	 */
284cdf0e10cSrcweir	[property] boolean PositionProtected;
285cdf0e10cSrcweir
286cdf0e10cSrcweir	//-------------------------------------------------------------------------
287cdf0e10cSrcweir	/** determines if the object is included in printing.
288cdf0e10cSrcweir	 */
289cdf0e10cSrcweir	[property] boolean Print;
290cdf0e10cSrcweir
291cdf0e10cSrcweir	//-------------------------------------------------------------------------
292cdf0e10cSrcweir	/** contains the type of the shadow of the object.
293cdf0e10cSrcweir	 */
294cdf0e10cSrcweir	[property] com::sun::star::table::ShadowFormat ShadowFormat;
295cdf0e10cSrcweir
296cdf0e10cSrcweir	//-------------------------------------------------------------------------
297cdf0e10cSrcweir	/** determines if the object gets an image map from a server.
298cdf0e10cSrcweir	 */
299cdf0e10cSrcweir	[property] boolean ServerMap;
300cdf0e10cSrcweir
301cdf0e10cSrcweir	//-------------------------------------------------------------------------
302cdf0e10cSrcweir	/** contains the size of the object.
303cdf0e10cSrcweir
304cdf0e10cSrcweir		@see BaseFrame::Height
305cdf0e10cSrcweir		@see BaseFrame::Width
306cdf0e10cSrcweir	 */
307cdf0e10cSrcweir	[property] com::sun::star::awt::Size Size;
308cdf0e10cSrcweir
309cdf0e10cSrcweir	//-------------------------------------------------------------------------
310cdf0e10cSrcweir	/** determines if the size is protected.
311cdf0e10cSrcweir	 */
312cdf0e10cSrcweir	[property] boolean SizeProtected;
313cdf0e10cSrcweir	//-------------------------------------------------------------------------
314cdf0e10cSrcweir	/** determines the type of the surrounding text.
315cdf0e10cSrcweir
316cdf0e10cSrcweir        @deprecated
317cdf0e10cSrcweir	 */
318cdf0e10cSrcweir        [property] com::sun::star::text::WrapTextMode Surround;
319cdf0e10cSrcweir
320cdf0e10cSrcweir	//-------------------------------------------------------------------------
321cdf0e10cSrcweir	/** determines if the text of the paragraph in which the object
322cdf0e10cSrcweir		is anchored, wraps around the object.
323cdf0e10cSrcweir	 */
324cdf0e10cSrcweir	[property] boolean SurroundAnchorOnly;
325cdf0e10cSrcweir
326cdf0e10cSrcweir    //-------------------------------------------------------------------------
327cdf0e10cSrcweir    /** determines the influence of the text wrap on the positioning of the
328cdf0e10cSrcweir        shape
329cdf0e10cSrcweir
330cdf0e10cSrcweir        <p>The value of this property is only evaluated for the positioning
331cdf0e10cSrcweir        of the shape, if the text document setting ConsiderTextWrapOnObjPos
332cdf0e10cSrcweir        is <TRUE/>. Valid values are given by <member>WrapInfluenceOnPosition</member></p>
333cdf0e10cSrcweir
334*2a413f17SJürgen Schmidt        @since OpenOffice 2.0
335cdf0e10cSrcweir     */
336cdf0e10cSrcweir    [optional, property] short WrapInfluenceOnPosition;
337cdf0e10cSrcweir
338cdf0e10cSrcweir    //-------------------------------------------------------------------------
339cdf0e10cSrcweir    /** returns the actual size of the object.
340cdf0e10cSrcweir
341cdf0e10cSrcweir        <p>Since to obtain the correct actual size of the object not only
342cdf0e10cSrcweir        the  layouting for the frame needs to be finished but the whole
343cdf0e10cSrcweir        document needs to be formatted as well. Thus if that was not done
344cdf0e10cSrcweir        previously it may take some while to retrieve this value.</p>
345cdf0e10cSrcweir
346*2a413f17SJürgen Schmidt        @since OpenOffice 2.0.4
347cdf0e10cSrcweir     */
348cdf0e10cSrcweir    [optional, property, maybevoid] com::sun::star::awt::Size LayoutSize;
349cdf0e10cSrcweir
350cdf0e10cSrcweir    //-------------------------------------------------------------------------
351cdf0e10cSrcweir        /** contains short title for the object
352cdf0e10cSrcweir
353cdf0e10cSrcweir            <p>This short title is visible as an alternative tag in HTML format.
354cdf0e10cSrcweir            Accessibility tools can read this text.</p>
355cdf0e10cSrcweir
356*2a413f17SJürgen Schmidt            @since OpenOffice 3.2
357cdf0e10cSrcweir        */
358cdf0e10cSrcweir        [optional, property] string Title;
359cdf0e10cSrcweir
360cdf0e10cSrcweir    //-------------------------------------------------------------------------
361cdf0e10cSrcweir        /** contains description for the object
362cdf0e10cSrcweir
363cdf0e10cSrcweir            <p>The long description text can be entered to describe a object in
364cdf0e10cSrcweir            more detail to users with screen reader software. The description is
365cdf0e10cSrcweir            visible as an alternative tag for accessibility tools.</p>
366cdf0e10cSrcweir
367*2a413f17SJürgen Schmidt            @since OpenOffice 3.2
368cdf0e10cSrcweir        */
369cdf0e10cSrcweir        [optional, property] string Description;
370cdf0e10cSrcweir};
371cdf0e10cSrcweir
372cdf0e10cSrcweir//=============================================================================
373cdf0e10cSrcweir
374cdf0e10cSrcweir}; }; }; };
375cdf0e10cSrcweir
376cdf0e10cSrcweir#endif
377