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 10cdf0e10cSrcweir * 11d1766043SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 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. 19cdf0e10cSrcweir * 20d1766043SAndrew Rist *************************************************************/ 21d1766043SAndrew Rist 22d1766043SAndrew Rist 23cdf0e10cSrcweir#ifndef __com_sun_star_text_TextPortion_idl__ 24cdf0e10cSrcweir#define __com_sun_star_text_TextPortion_idl__ 25cdf0e10cSrcweir 26cdf0e10cSrcweir 27cdf0e10cSrcweir#ifndef __com_sun_star_beans_XTolerantMultiPropertySet_idl__ 28cdf0e10cSrcweir#include <com/sun/star/beans/XTolerantMultiPropertySet.idl> 29cdf0e10cSrcweir#endif 30cdf0e10cSrcweir 31cdf0e10cSrcweir#ifndef __com_sun_star_container_XContentEnumerationAccess_idl__ 32cdf0e10cSrcweir#include <com/sun/star/container/XContentEnumerationAccess.idl> 33cdf0e10cSrcweir#endif 34cdf0e10cSrcweir 35cdf0e10cSrcweir#ifndef __com_sun_star_text_TextRange_idl__ 36cdf0e10cSrcweir#include <com/sun/star/text/TextRange.idl> 37cdf0e10cSrcweir#endif 38cdf0e10cSrcweir 39cdf0e10cSrcweir#ifndef __com_sun_star_text_XTextContent_idl__ 40cdf0e10cSrcweir#include <com/sun/star/text/XTextContent.idl> 41cdf0e10cSrcweir#endif 42cdf0e10cSrcweir 43cdf0e10cSrcweir#ifndef __com_sun_star_text_XTextField_idl__ 44cdf0e10cSrcweir#include <com/sun/star/text/XTextField.idl> 45cdf0e10cSrcweir#endif 46cdf0e10cSrcweir 47cdf0e10cSrcweir#ifndef __com_sun_star_text_XFootnote_idl__ 48cdf0e10cSrcweir#include <com/sun/star/text/XFootnote.idl> 49cdf0e10cSrcweir#endif 50cdf0e10cSrcweir 51cdf0e10cSrcweir 52cdf0e10cSrcweir//============================================================================= 53cdf0e10cSrcweir 54cdf0e10cSrcweirmodule com { module sun { module star { module text { 55cdf0e10cSrcweir 56cdf0e10cSrcweir//============================================================================= 57cdf0e10cSrcweir/** A TextPortion is a piece of text within a paragraph that does not 58cdf0e10cSrcweir contain changes of its attributes inside. 59cdf0e10cSrcweir 60cdf0e10cSrcweir <p> 61cdf0e10cSrcweir It is created by an enumeration implemented in a paragraph service. 62cdf0e10cSrcweir It may be used to export the content of the paragraph to an external 63cdf0e10cSrcweir document format. 64cdf0e10cSrcweir </p> 65cdf0e10cSrcweir 66cdf0e10cSrcweir @see com::sun::star::text::TextPortionEnumeration 67cdf0e10cSrcweir @see com::sun::star::text::XTextPortionEnumeration 68cdf0e10cSrcweir*/ 69cdf0e10cSrcweirpublished service TextPortion 70cdf0e10cSrcweir{ 71cdf0e10cSrcweir service ::com::sun::star::text::TextRange; 72cdf0e10cSrcweir 73cdf0e10cSrcweir //------------------------------------------------------------------------- 74cdf0e10cSrcweir /** contains text frames, graphic objects, embedded objects or 75cdf0e10cSrcweir shapes that are anchored at or as character. 76cdf0e10cSrcweir @see com.sun.star.text.TextFrame 77cdf0e10cSrcweir @see com.sun.star.text.TextGraphicObject 78cdf0e10cSrcweir */ 79cdf0e10cSrcweir [optional] 80cdf0e10cSrcweir interface ::com::sun::star::container::XContentEnumerationAccess; 81cdf0e10cSrcweir 82cdf0e10cSrcweir //------------------------------------------------------------------------- 83cdf0e10cSrcweir /** gives access to a sequence of properties. 84*2a413f17SJürgen Schmidt @since OpenOffice 2.0 85cdf0e10cSrcweir */ 86cdf0e10cSrcweir [optional] 87cdf0e10cSrcweir interface ::com::sun::star::beans::XTolerantMultiPropertySet; 88cdf0e10cSrcweir 89cdf0e10cSrcweir //------------------------------------------------------------------------- 90cdf0e10cSrcweir /** contains the type of the text portion. 91cdf0e10cSrcweir 92cdf0e10cSrcweir <p> Valid content type names are:</p> 93cdf0e10cSrcweir <dl> 94cdf0e10cSrcweir <dt>Text</dt><dd>string content</dd> 95cdf0e10cSrcweir <dt>TextField</dt><dd>a text field</dd> 96cdf0e10cSrcweir <dt>TextContent</dt><dd>text content - supplied via the 97cdf0e10cSrcweir interface <type scope="com::sun::star::container"> 98cdf0e10cSrcweir XContentEnumerationAccess</type></dd> 99cdf0e10cSrcweir <dt>ControlCharacter</dt><dd>a control character</dd> 100cdf0e10cSrcweir <dt>Footnote</dt><dd>a footnote or an endnote</dd> 101cdf0e10cSrcweir <dt>ReferenceMark</dt><dd>a reference mark</dd> 102cdf0e10cSrcweir <dt>DocumentIndexMark</dt><dd>a document index mark</dd> 103cdf0e10cSrcweir <dt>Bookmark</dt><dd>a bookmark</dd> 104cdf0e10cSrcweir <dt>Redline</dt><dd>a redline portion which is a result 105cdf0e10cSrcweir of the change tracking feature</dd> 106cdf0e10cSrcweir <dt>Ruby</dt><dd>a ruby attribute which is used in Asian text</dd> 107cdf0e10cSrcweir <dt>Frame</dt><dd>a frame</dd> 108cdf0e10cSrcweir <dt>SoftPageBreak</dt><dd>a soft page break</dd> 109cdf0e10cSrcweir <dt>InContentMetadata</dt><dd>a text range with attached metadata</dd> 110cdf0e10cSrcweir </dl> 111cdf0e10cSrcweir <p>For Reference marks, document index marks, etc., 2 text portions 112cdf0e10cSrcweir will be generated, one for the start position and one for the 113cdf0e10cSrcweir end position.</p> 114cdf0e10cSrcweir */ 115cdf0e10cSrcweir [readonly, property] string TextPortionType; 116cdf0e10cSrcweir 117cdf0e10cSrcweir //------------------------------------------------------------------------- 118cdf0e10cSrcweir /** contains the control character of a text portion of type 119cdf0e10cSrcweir ControlCharacter. 120cdf0e10cSrcweir @deprecated type ControlCharacter no longer implemented 121cdf0e10cSrcweir */ 122cdf0e10cSrcweir [readonly, property] short ControlCharacter; 123cdf0e10cSrcweir 124cdf0e10cSrcweir //------------------------------------------------------------------------- 125cdf0e10cSrcweir /** contains the bookmark of a text portion of type Bookmark. */ 126cdf0e10cSrcweir [optional, readonly, property] 127cdf0e10cSrcweir ::com::sun::star::text::XTextContent Bookmark; 128cdf0e10cSrcweir 129cdf0e10cSrcweir //------------------------------------------------------------------------- 130cdf0e10cSrcweir /** contains the document index mark of a text portion of type 131cdf0e10cSrcweir DocumentIndexMark. */ 132cdf0e10cSrcweir [optional, readonly, property] 133cdf0e10cSrcweir ::com::sun::star::text::XTextContent DocumentIndexMark; 134cdf0e10cSrcweir 135cdf0e10cSrcweir //------------------------------------------------------------------------- 136cdf0e10cSrcweir /** contains the bookmark of a text portion of type ReferenceMark. */ 137cdf0e10cSrcweir [optional, readonly, property] 138cdf0e10cSrcweir ::com::sun::star::text::XTextContent ReferenceMark; 139cdf0e10cSrcweir 140cdf0e10cSrcweir //------------------------------------------------------------------------- 141cdf0e10cSrcweir /** contains the footnote of a text portion of type Footnote. */ 142cdf0e10cSrcweir [optional, readonly, property] 143cdf0e10cSrcweir ::com::sun::star::text::XFootnote Footnote; 144cdf0e10cSrcweir 145cdf0e10cSrcweir //------------------------------------------------------------------------- 146cdf0e10cSrcweir /** contains the text field of a text portion of type TextField. */ 147cdf0e10cSrcweir [optional, readonly, property] 148cdf0e10cSrcweir ::com::sun::star::text::XTextField TextField; 149cdf0e10cSrcweir 150cdf0e10cSrcweir //------------------------------------------------------------------------- 151cdf0e10cSrcweir /** contains the text range of a text portion of type InContentMetadata. 152*2a413f17SJürgen Schmidt @since OpenOffice 3.2 153cdf0e10cSrcweir */ 154cdf0e10cSrcweir [optional, readonly, property] 155cdf0e10cSrcweir ::com::sun::star::text::XTextContent InContentMetadata; 156cdf0e10cSrcweir 157cdf0e10cSrcweir //------------------------------------------------------------------------- 158cdf0e10cSrcweir /** contains whether the portion is a point only. */ 159cdf0e10cSrcweir [optional, readonly, property] boolean IsCollapsed; 160cdf0e10cSrcweir 161cdf0e10cSrcweir //------------------------------------------------------------------------- 162cdf0e10cSrcweir /** contains whether the portion is the start of the portion. 163cdf0e10cSrcweir 164cdf0e10cSrcweir <p>This is used for portions which are represented by 165cdf0e10cSrcweir 2 TextPortion objects (e.g., DocmentIndexMark).</p> 166cdf0e10cSrcweir */ 167cdf0e10cSrcweir [optional, readonly, property] boolean IsStart; 168cdf0e10cSrcweir 169cdf0e10cSrcweir}; 170cdf0e10cSrcweir 171cdf0e10cSrcweir//============================================================================= 172cdf0e10cSrcweir 173cdf0e10cSrcweir}; }; }; }; 174cdf0e10cSrcweir#endif 175