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 24cdf0e10cSrcweir#ifndef __com_sun_star_text_NumberingLevel_idl__ 25cdf0e10cSrcweir#define __com_sun_star_text_NumberingLevel_idl__ 26cdf0e10cSrcweir 27cdf0e10cSrcweir#ifndef __com_sun_star_util_Color_idl__ 28cdf0e10cSrcweir#include <com/sun/star/util/Color.idl> 29cdf0e10cSrcweir#endif 30cdf0e10cSrcweir 31cdf0e10cSrcweir#ifndef __com_sun_star_awt_Size_idl__ 32cdf0e10cSrcweir#include <com/sun/star/awt/Size.idl> 33cdf0e10cSrcweir#endif 34cdf0e10cSrcweir 35cdf0e10cSrcweir#ifndef __com_sun_star_awt_FontDescriptor_idl__ 36cdf0e10cSrcweir#include <com/sun/star/awt/FontDescriptor.idl> 37cdf0e10cSrcweir#endif 38cdf0e10cSrcweir 39cdf0e10cSrcweir#ifndef __com_sun_star_awt_XBitmap_idl__ 40cdf0e10cSrcweir#include <com/sun/star/awt/XBitmap.idl> 41cdf0e10cSrcweir#endif 42cdf0e10cSrcweir 43cdf0e10cSrcweir//============================================================================= 44cdf0e10cSrcweir 45cdf0e10cSrcweir module com { module sun { module star { module text { 46cdf0e10cSrcweir 47cdf0e10cSrcweir//============================================================================= 48cdf0e10cSrcweir 49cdf0e10cSrcweir/** provides access to a numbering level as part of the Numbering Rules. 50cdf0e10cSrcweir */ 51cdf0e10cSrcweirpublished service NumberingLevel 52cdf0e10cSrcweir{ 53cdf0e10cSrcweir //------------------------------------------------------------------------- 54cdf0e10cSrcweir 55cdf0e10cSrcweir /** adjusts the numbering (HoriOrientation_LEFT/RIGHT/CENTER) 56cdf0e10cSrcweir 57cdf0e10cSrcweir <p> 58cdf0e10cSrcweir </p> 59cdf0e10cSrcweir */ 60cdf0e10cSrcweir [property] short Adjust; 61cdf0e10cSrcweir 62cdf0e10cSrcweir //------------------------------------------------------------------------- 63cdf0e10cSrcweir 64cdf0e10cSrcweir /** number of upper levels that are included in the current numbering symbol. 65cdf0e10cSrcweir */ 66cdf0e10cSrcweir [optional, property] short ParentNumbering; 67cdf0e10cSrcweir 68cdf0e10cSrcweir //------------------------------------------------------------------------- 69cdf0e10cSrcweir 70cdf0e10cSrcweir /** the prefix of the numbering symbol. 71cdf0e10cSrcweir */ 72cdf0e10cSrcweir [property] string Prefix; 73cdf0e10cSrcweir 74cdf0e10cSrcweir //------------------------------------------------------------------------- 75cdf0e10cSrcweir 76cdf0e10cSrcweir /** the suffix of the numbering symbol. 77cdf0e10cSrcweir */ 78cdf0e10cSrcweir [property] string Suffix; 79cdf0e10cSrcweir 80cdf0e10cSrcweir //------------------------------------------------------------------------- 81cdf0e10cSrcweir 82cdf0e10cSrcweir /** Name of the character style that is used for the numbering symbol. 83cdf0e10cSrcweir */ 84cdf0e10cSrcweir [optional, property] string CharStyleName; 85cdf0e10cSrcweir 86cdf0e10cSrcweir //------------------------------------------------------------------------- 87cdf0e10cSrcweir 88cdf0e10cSrcweir /** the ID of the symbol in the given font. This is only valid if the 89cdf0e10cSrcweir numbering type is <const scope="com::sun::star::style">NumberingType::CHAR_SPECIAL</const>. 90cdf0e10cSrcweir @deprecated 91cdf0e10cSrcweir */ 92cdf0e10cSrcweir [optional, property] short BulletId; 93cdf0e10cSrcweir //------------------------------------------------------------------------- 94cdf0e10cSrcweir 95cdf0e10cSrcweir /** contains the symbol in the given font. This is only valid if the 96cdf0e10cSrcweir numbering type is <const scope="com::sun::star::style">NumberingType::CHAR_SPECIAL</const>. 97cdf0e10cSrcweir */ 98cdf0e10cSrcweir [property] string BulletChar; 99cdf0e10cSrcweir //------------------------------------------------------------------------- 100cdf0e10cSrcweir 101cdf0e10cSrcweir /** the name of the font for the symbol. This is only valid if the 102cdf0e10cSrcweir numbering type is <const scope="com::sun::star::style">NumberingType::CHAR_SPECIAL</const>. 103cdf0e10cSrcweir */ 104cdf0e10cSrcweir [property] string BulletFontName; 105cdf0e10cSrcweir 106cdf0e10cSrcweir //------------------------------------------------------------------------- 107cdf0e10cSrcweir 108cdf0e10cSrcweir /** the font used to paint the bullet. 109cdf0e10cSrcweir */ 110cdf0e10cSrcweir [optional, property] com::sun::star::awt::FontDescriptor BulletFont; 111cdf0e10cSrcweir 112cdf0e10cSrcweir //------------------------------------------------------------------------- 113cdf0e10cSrcweir 114cdf0e10cSrcweir /** the URL of the graphic file that is used as the numbering symbol. 115cdf0e10cSrcweir 116cdf0e10cSrcweir <p> This is only valid if the numbering type is 117cdf0e10cSrcweir <const scope="com::sun::star::style">NumberingType::BITMAP</const>.</p> 118cdf0e10cSrcweir */ 119cdf0e10cSrcweir [property] string GraphicURL; 120cdf0e10cSrcweir 121cdf0e10cSrcweir //------------------------------------------------------------------------- 122cdf0e10cSrcweir 123cdf0e10cSrcweir /** the bitmap containing the bullet. 124cdf0e10cSrcweir */ 125cdf0e10cSrcweir [optional, property] com::sun::star::awt::XBitmap GraphicBitmap; 126cdf0e10cSrcweir 127cdf0e10cSrcweir //------------------------------------------------------------------------- 128cdf0e10cSrcweir 129cdf0e10cSrcweir /** size of the graphic that is used as bullet. 130cdf0e10cSrcweir */ 131cdf0e10cSrcweir [optional, property] com::sun::star::awt::Size GraphicSize; 132cdf0e10cSrcweir //------------------------------------------------------------------------- 133cdf0e10cSrcweir 134cdf0e10cSrcweir //------------------------------------------------------------------------- 135cdf0e10cSrcweir 136cdf0e10cSrcweir /** contains the vertical orientation of a graphic. 137cdf0e10cSrcweir 138cdf0e10cSrcweir <p> It is set using com::sun::star::text::VertOrientation.</p> 139cdf0e10cSrcweir */ 140cdf0e10cSrcweir [optional, property] short VertOrient; 141cdf0e10cSrcweir //------------------------------------------------------------------------- 142cdf0e10cSrcweir 143cdf0e10cSrcweir /** specifies the start value for the numbering. 144cdf0e10cSrcweir 145cdf0e10cSrcweir <p>This property is only valid if the numbering type is not 146cdf0e10cSrcweir <const scope="com::sun::star::style">NumberingType::BITMAP</const> or 147cdf0e10cSrcweir <const scope="com::sun::star::style">NumberingType::CHAR_SPECIAL</const>.</p> 148cdf0e10cSrcweir */ 149cdf0e10cSrcweir [optional, property] short StartWith; 150cdf0e10cSrcweir 151cdf0e10cSrcweir //------------------------------------------------------------------------- 152cdf0e10cSrcweir 153cdf0e10cSrcweir /** specifies the left margin of the numbering 154cdf0e10cSrcweir */ 155cdf0e10cSrcweir [property] long LeftMargin; 156cdf0e10cSrcweir 157cdf0e10cSrcweir //------------------------------------------------------------------------- 158cdf0e10cSrcweir 159cdf0e10cSrcweir /** specifies the distance between the numbering symbol and the text of 160cdf0e10cSrcweir the paragraph. 161cdf0e10cSrcweir */ 162cdf0e10cSrcweir [optional, property] long SymbolTextDistance; 163cdf0e10cSrcweir 164cdf0e10cSrcweir //------------------------------------------------------------------------- 165cdf0e10cSrcweir 166cdf0e10cSrcweir /** specifies the offset between the beginning of the first line and 167cdf0e10cSrcweir the beginning of the following lines of the paragraph. 168cdf0e10cSrcweir */ 169cdf0e10cSrcweir [property] long FirstLineOffset; 170cdf0e10cSrcweir 171cdf0e10cSrcweir //------------------------------------------------------------------------- 172cdf0e10cSrcweir 173cdf0e10cSrcweir /** specifies the type of numbering. 174cdf0e10cSrcweir */ 175cdf0e10cSrcweir [property] short NumberingType; 176cdf0e10cSrcweir 177cdf0e10cSrcweir //------------------------------------------------------------------------- 178cdf0e10cSrcweir 179cdf0e10cSrcweir /** contains the name of the paragraph style that is interpreted as the 180cdf0e10cSrcweir header of this level. It is only contained in the levels of 181cdf0e10cSrcweir chapter numbering rules. 182cdf0e10cSrcweir */ 183cdf0e10cSrcweir [property] string HeadingStyleName; 184cdf0e10cSrcweir 185cdf0e10cSrcweir /** contains the color for the symbol. This is only valid if the 186cdf0e10cSrcweir numbering type is <const scope="com::sun::star::style">NumberingType::CHAR_SPECIAL</const>. 187cdf0e10cSrcweir */ 188cdf0e10cSrcweir [optional, property] com::sun::star::util::Color BulletColor; 189cdf0e10cSrcweir 190cdf0e10cSrcweir /** contains the size of the symbol relative to the high of the paragraph. This is only valid if the 191cdf0e10cSrcweir numbering type is <const scope="com::sun::star::style">NumberingType::CHAR_SPECIAL</const>. 192cdf0e10cSrcweir */ 193cdf0e10cSrcweir [optional, property] short BulletRelSize; 194cdf0e10cSrcweir 195cdf0e10cSrcweir /** position and space mode 196cdf0e10cSrcweir 197cdf0e10cSrcweir <p> 198cdf0e10cSrcweir Specifies the position and space mode of the numbering level. 199cdf0e10cSrcweir For valid values see com::sun::star::text::PositionAndSpaceMode. 200cdf0e10cSrcweir If it equals LABEL_WIDTH_AND_POSITION, properties Adjust, 201cdf0e10cSrcweir LeftMargin, SymbolTextDistance and FirstLineOffset are used. 202cdf0e10cSrcweir If it equals LABEL_ALIGNMENT, properties Adjust, LabelFollowedBy, 203cdf0e10cSrcweir ListtabStopPosition, FirstLineIndent, IndentAt are used. 204cdf0e10cSrcweir </p> 205cdf0e10cSrcweir 206*2a413f17SJürgen Schmidt @since OpenOffice 3.0 207cdf0e10cSrcweir */ 208cdf0e10cSrcweir [optional, property] short PositionAndSpaceMode; 209cdf0e10cSrcweir 210cdf0e10cSrcweir /** character following the list label 211cdf0e10cSrcweir 212cdf0e10cSrcweir <p> 213cdf0e10cSrcweir Specifies the character following the list label. 214cdf0e10cSrcweir For valid values see com::sun::star::text::LabelFollow. 215cdf0e10cSrcweir Only of relevance, if PositionAndSpaceMode equals LABEL_ALIGNMENT. 216cdf0e10cSrcweir </p> 217cdf0e10cSrcweir 218*2a413f17SJürgen Schmidt @since OpenOffice 3.0 219cdf0e10cSrcweir */ 220cdf0e10cSrcweir [optional, property] short LabelFollowedBy; 221cdf0e10cSrcweir 222cdf0e10cSrcweir /** list tab position 223cdf0e10cSrcweir 224cdf0e10cSrcweir <p> 225cdf0e10cSrcweir Specifies the position of the list tab stop - only non-negative 226cdf0e10cSrcweir values are allowed. 227cdf0e10cSrcweir Only of relevance, if PositionAndSpaceMode equals LABEL_ALIGNMENT 228cdf0e10cSrcweir and LabelFollowedBy equal LABELFOLLOW_LISTTAB 229cdf0e10cSrcweir </p> 230cdf0e10cSrcweir 231*2a413f17SJürgen Schmidt @since OpenOffice 3.0 232cdf0e10cSrcweir */ 233cdf0e10cSrcweir [optional, property] long ListtabStopPosition; 234cdf0e10cSrcweir 235cdf0e10cSrcweir /** additional line indent for the first text line 236cdf0e10cSrcweir 237cdf0e10cSrcweir <p> 238cdf0e10cSrcweir Specifies the first line indent. 239cdf0e10cSrcweir Only of relevance, if PositionAndSpaceMode equals LABEL_ALIGNMENT. 240cdf0e10cSrcweir </p> 241cdf0e10cSrcweir 242*2a413f17SJürgen Schmidt @since OpenOffice 3.0 243cdf0e10cSrcweir */ 244cdf0e10cSrcweir [optional, property] long FirstLineIndent; 245cdf0e10cSrcweir 246cdf0e10cSrcweir /** indentation of the text lines 247cdf0e10cSrcweir 248cdf0e10cSrcweir <p> 249cdf0e10cSrcweir Specifies the indent of the text lines 250cdf0e10cSrcweir Only of relevance, if PositionAndSpaceMode equals LABEL_ALIGNMENT. 251cdf0e10cSrcweir </p> 252cdf0e10cSrcweir 253*2a413f17SJürgen Schmidt @since OpenOffice 3.0 254cdf0e10cSrcweir */ 255cdf0e10cSrcweir [optional, property] long IndentAt; 256cdf0e10cSrcweir}; 257cdf0e10cSrcweir 258cdf0e10cSrcweir//============================================================================= 259cdf0e10cSrcweir 260cdf0e10cSrcweir}; }; }; }; 261cdf0e10cSrcweir 262cdf0e10cSrcweir#endif 263cdf0e10cSrcweir 264