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: TextPortion.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_TextPortion_idl__
31 #define __com_sun_star_text_TextPortion_idl__
34 #ifndef __com_sun_star_beans_XTolerantMultiPropertySet_idl__
35 #include
<com
/sun
/star
/beans
/XTolerantMultiPropertySet.idl
>
38 #ifndef __com_sun_star_container_XContentEnumerationAccess_idl__
39 #include
<com
/sun
/star
/container
/XContentEnumerationAccess.idl
>
42 #ifndef __com_sun_star_text_TextRange_idl__
43 #include
<com
/sun
/star
/text
/TextRange.idl
>
46 #ifndef __com_sun_star_text_XTextContent_idl__
47 #include
<com
/sun
/star
/text
/XTextContent.idl
>
50 #ifndef __com_sun_star_text_XTextField_idl__
51 #include
<com
/sun
/star
/text
/XTextField.idl
>
54 #ifndef __com_sun_star_text_XFootnote_idl__
55 #include
<com
/sun
/star
/text
/XFootnote.idl
>
59 //=============================================================================
61 module com
{ module sun
{ module star
{ module text
{
63 //=============================================================================
64 /** A TextPortion is a piece of text within a paragraph that does not
65 contain changes of its attributes inside.
68 It is created by an enumeration implemented in a paragraph service.
69 It may be used to export the content of the paragraph to an external
73 @see com::sun::star::text::TextPortionEnumeration
74 @see com::sun::star::text::XTextPortionEnumeration
76 published service TextPortion
78 service
::com
::sun
::star
::text
::TextRange
;
80 //-------------------------------------------------------------------------
81 /** contains text frames, graphic objects, embedded objects or
82 shapes that are anchored at or as character.
83 @see com.sun.star.text.TextFrame
84 @see com.sun.star.text.TextGraphicObject
87 interface ::com
::sun
::star
::container
::XContentEnumerationAccess
;
89 //-------------------------------------------------------------------------
90 /** gives access to a sequence of properties.
94 interface ::com
::sun
::star
::beans
::XTolerantMultiPropertySet
;
96 //-------------------------------------------------------------------------
97 /** contains the type of the text portion.
99 <p> Valid content type names are:</p>
101 <dt>Text</dt><dd>string content</dd>
102 <dt>TextField</dt><dd>a text field</dd>
103 <dt>TextContent</dt><dd>text content - supplied via the
104 interface <type scope="com::sun::star::container">
105 XContentEnumerationAccess</type></dd>
106 <dt>ControlCharacter</dt><dd>a control character</dd>
107 <dt>Footnote</dt><dd>a footnote or an endnote</dd>
108 <dt>ReferenceMark</dt><dd>a reference mark</dd>
109 <dt>DocumentIndexMark</dt><dd>a document index mark</dd>
110 <dt>Bookmark</dt><dd>a bookmark</dd>
111 <dt>Redline</dt><dd>a redline portion which is a result
112 of the change tracking feature</dd>
113 <dt>Ruby</dt><dd>a ruby attribute which is used in Asian text</dd>
114 <dt>Frame</dt><dd>a frame</dd>
115 <dt>SoftPageBreak</dt><dd>a soft page break</dd>
117 <p>For Reference marks, document index marks, etc., 2 text portions
118 will be generated, one for the start position and one for the
121 [readonly, property
] string TextPortionType
;
123 //-------------------------------------------------------------------------
124 /** contains the control character of a text portion of type
127 [readonly, property
] short ControlCharacter
;
129 //-------------------------------------------------------------------------
130 /** contains the bookmark of a text portion of type Bookmark. */
131 [optional, readonly, property
]
132 ::com
::sun
::star
::text
::XTextContent Bookmark
;
134 //-------------------------------------------------------------------------
135 /** contains the document index mark of a text portion of type
136 DocumentIndexMark. */
137 [optional, readonly, property
]
138 ::com
::sun
::star
::text
::XTextContent DocumentIndexMark
;
140 //-------------------------------------------------------------------------
141 /** contains the bookmark of a text portion of type ReferenceMark. */
142 [optional, readonly, property
]
143 ::com
::sun
::star
::text
::XTextContent ReferenceMark
;
145 //-------------------------------------------------------------------------
146 /** contains the footnote of a text portion of type Footnote. */
147 [optional, readonly, property
]
148 ::com
::sun
::star
::text
::XFootnote Footnote
;
150 //-------------------------------------------------------------------------
151 /** contains the text field of a text portion of type TextField. */
152 [optional, readonly, property
]
153 ::com
::sun
::star
::text
::XTextField TextField
;
155 //-------------------------------------------------------------------------
156 /** contains whether the portion is a point only. */
157 [optional, readonly, property
] boolean IsCollapsed
;
159 //-------------------------------------------------------------------------
160 /** contains whether the portion is the start of the portion.
162 <p>This is used for portions which are represented by
163 2 TextPortion objects (e.g., DocmentIndexMark).</p>
165 [optional, readonly, property
] boolean IsStart
;
169 //=============================================================================