1*cdf0e10cSrcweir/************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir#ifndef __com_sun_star_drawing_TextProperties_idl__ 28*cdf0e10cSrcweir#define __com_sun_star_drawing_TextProperties_idl__ 29*cdf0e10cSrcweir 30*cdf0e10cSrcweir#ifndef __com_sun_star_container_XIndexReplace_idl__ 31*cdf0e10cSrcweir#include <com/sun/star/container/XIndexReplace.idl> 32*cdf0e10cSrcweir#endif 33*cdf0e10cSrcweir 34*cdf0e10cSrcweir#ifndef __com_sun_star_style_CharacterProperties_idl__ 35*cdf0e10cSrcweir#include <com/sun/star/style/CharacterProperties.idl> 36*cdf0e10cSrcweir#endif 37*cdf0e10cSrcweir 38*cdf0e10cSrcweir#ifndef __com_sun_star_style_CharacterPropertiesAsian_idl__ 39*cdf0e10cSrcweir#include <com/sun/star/style/CharacterPropertiesAsian.idl> 40*cdf0e10cSrcweir#endif 41*cdf0e10cSrcweir 42*cdf0e10cSrcweir#ifndef __com_sun_star_style_CharacterPropertiesComplex_idl__ 43*cdf0e10cSrcweir#include <com/sun/star/style/CharacterPropertiesComplex.idl> 44*cdf0e10cSrcweir#endif 45*cdf0e10cSrcweir 46*cdf0e10cSrcweir#ifndef __com_sun_star_style_ParagraphProperties_idl__ 47*cdf0e10cSrcweir#include <com/sun/star/style/ParagraphProperties.idl> 48*cdf0e10cSrcweir#endif 49*cdf0e10cSrcweir 50*cdf0e10cSrcweir#ifndef __com_sun_star_style_ParagraphPropertiesAsian_idl__ 51*cdf0e10cSrcweir#include <com/sun/star/style/ParagraphPropertiesAsian.idl> 52*cdf0e10cSrcweir#endif 53*cdf0e10cSrcweir 54*cdf0e10cSrcweir#ifndef __com_sun_star_style_ParagraphPropertiesComplex_idl__ 55*cdf0e10cSrcweir#include <com/sun/star/style/ParagraphPropertiesComplex.idl> 56*cdf0e10cSrcweir#endif 57*cdf0e10cSrcweir 58*cdf0e10cSrcweir#ifndef __com_sun_star_drawing_TextFitToSizeType_idl__ 59*cdf0e10cSrcweir#include <com/sun/star/drawing/TextFitToSizeType.idl> 60*cdf0e10cSrcweir#endif 61*cdf0e10cSrcweir 62*cdf0e10cSrcweir#ifndef __com_sun_star_drawing_TextAdjust_idl__ 63*cdf0e10cSrcweir#include <com/sun/star/drawing/TextAdjust.idl> 64*cdf0e10cSrcweir#endif 65*cdf0e10cSrcweir 66*cdf0e10cSrcweir#ifndef __com_sun_star_drawing_TextAnimationDirection_idl__ 67*cdf0e10cSrcweir#include <com/sun/star/drawing/TextAnimationDirection.idl> 68*cdf0e10cSrcweir#endif 69*cdf0e10cSrcweir 70*cdf0e10cSrcweir#ifndef __com_sun_star_drawing_TextAnimationKind_idl__ 71*cdf0e10cSrcweir#include <com/sun/star/drawing/TextAnimationKind.idl> 72*cdf0e10cSrcweir#endif 73*cdf0e10cSrcweir 74*cdf0e10cSrcweir#ifndef __com_sun_star_drawing_TextVerticalAdjust_idl__ 75*cdf0e10cSrcweir#include <com/sun/star/drawing/TextVerticalAdjust.idl> 76*cdf0e10cSrcweir#endif 77*cdf0e10cSrcweir 78*cdf0e10cSrcweir#ifndef __com_sun_star_drawing_TextHorizontalAdjust_idl__ 79*cdf0e10cSrcweir#include <com/sun/star/drawing/TextHorizontalAdjust.idl> 80*cdf0e10cSrcweir#endif 81*cdf0e10cSrcweir 82*cdf0e10cSrcweir#ifndef __com_sun_star_text_WritingMode_idl__ 83*cdf0e10cSrcweir#include <com/sun/star/text/WritingMode.idl> 84*cdf0e10cSrcweir#endif 85*cdf0e10cSrcweir 86*cdf0e10cSrcweir//============================================================================= 87*cdf0e10cSrcweir 88*cdf0e10cSrcweir module com { module sun { module star { module drawing { 89*cdf0e10cSrcweir 90*cdf0e10cSrcweir//============================================================================= 91*cdf0e10cSrcweir 92*cdf0e10cSrcweir 93*cdf0e10cSrcweir/** This is a set of properties to describe the style for rendering the 94*cdf0e10cSrcweir text area inside a shape. 95*cdf0e10cSrcweir */ 96*cdf0e10cSrcweirpublished service TextProperties 97*cdf0e10cSrcweir{ 98*cdf0e10cSrcweir /** The properties in this service set default formats for text 99*cdf0e10cSrcweir inside the <type>Shape</type>. 100*cdf0e10cSrcweir */ 101*cdf0e10cSrcweir service com::sun::star::style::CharacterProperties; 102*cdf0e10cSrcweir 103*cdf0e10cSrcweir //------------------------------------------------------------------------- 104*cdf0e10cSrcweir 105*cdf0e10cSrcweir /** The properties in this service set default formats for asian text 106*cdf0e10cSrcweir inside the <type>Shape</type>. 107*cdf0e10cSrcweir */ 108*cdf0e10cSrcweir [optional] service com::sun::star::style::CharacterPropertiesAsian; 109*cdf0e10cSrcweir 110*cdf0e10cSrcweir //------------------------------------------------------------------------- 111*cdf0e10cSrcweir 112*cdf0e10cSrcweir /** The properties in this service set default formats for complex text 113*cdf0e10cSrcweir inside the <type>Shape</type>. 114*cdf0e10cSrcweir */ 115*cdf0e10cSrcweir [optional] service com::sun::star::style::CharacterPropertiesComplex; 116*cdf0e10cSrcweir 117*cdf0e10cSrcweir //------------------------------------------------------------------------- 118*cdf0e10cSrcweir 119*cdf0e10cSrcweir /** The properties in this service set default formats for text 120*cdf0e10cSrcweir inside the <type>Shape</type>. 121*cdf0e10cSrcweir */ 122*cdf0e10cSrcweir service com::sun::star::style::ParagraphProperties; 123*cdf0e10cSrcweir 124*cdf0e10cSrcweir //------------------------------------------------------------------------- 125*cdf0e10cSrcweir 126*cdf0e10cSrcweir /** The properties in this service set default formats for asian text 127*cdf0e10cSrcweir inside the <type>Shape</type>. 128*cdf0e10cSrcweir */ 129*cdf0e10cSrcweir [optional] service com::sun::star::style::ParagraphPropertiesAsian; 130*cdf0e10cSrcweir 131*cdf0e10cSrcweir //------------------------------------------------------------------------- 132*cdf0e10cSrcweir 133*cdf0e10cSrcweir /** The properties in this service set default formats for complex text 134*cdf0e10cSrcweir inside the <type>Shape</type>. 135*cdf0e10cSrcweir */ 136*cdf0e10cSrcweir [optional] service com::sun::star::style::ParagraphPropertiesComplex; 137*cdf0e10cSrcweir //------------------------------------------------------------------------- 138*cdf0e10cSrcweir 139*cdf0e10cSrcweir /** If this is <TRUE/>, numbering is ON for the text of 140*cdf0e10cSrcweir this <type>Shape</type>. 141*cdf0e10cSrcweir */ 142*cdf0e10cSrcweir [optional, property] boolean IsNumbering; 143*cdf0e10cSrcweir 144*cdf0e10cSrcweir //------------------------------------------------------------------------- 145*cdf0e10cSrcweir 146*cdf0e10cSrcweir /** describes the numbering levels. 147*cdf0e10cSrcweir <p>The different rules accessible with this 148*cdf0e10cSrcweir <type scope="com::sun::star::container">XIndexReplace</type> interface 149*cdf0e10cSrcweir are sequences of property values as described in the service 150*cdf0e10cSrcweir <type scope="com::sun::star::style">NumberingRule</type>.</p> 151*cdf0e10cSrcweir */ 152*cdf0e10cSrcweir [optional, property] com::sun::star::container::XIndexReplace NumberingRules; 153*cdf0e10cSrcweir 154*cdf0e10cSrcweir //------------------------------------------------------------------------- 155*cdf0e10cSrcweir 156*cdf0e10cSrcweir /** If this value is <TRUE/>, the height of the <type>Shape</type> is 157*cdf0e10cSrcweir automatically expanded/shrunk when text is added to or removed from 158*cdf0e10cSrcweir the <type>Shape</type>. 159*cdf0e10cSrcweir */ 160*cdf0e10cSrcweir [property] boolean TextAutoGrowHeight; 161*cdf0e10cSrcweir 162*cdf0e10cSrcweir //------------------------------------------------------------------------- 163*cdf0e10cSrcweir 164*cdf0e10cSrcweir /** If this value is <TRUE/>, the width of the <type>Shape</type> is 165*cdf0e10cSrcweir automatically expanded/shrunk when text is added to or removed from 166*cdf0e10cSrcweir the <type>Shape</type>. 167*cdf0e10cSrcweir */ 168*cdf0e10cSrcweir [property] boolean TextAutoGrowWidth; 169*cdf0e10cSrcweir 170*cdf0e10cSrcweir //------------------------------------------------------------------------- 171*cdf0e10cSrcweir 172*cdf0e10cSrcweir // DocMerge from xml: property com::sun::star::drawing::Text::TextContourFrame 173*cdf0e10cSrcweir /** If this value is <TRUE/>, the left edge of every line of text is 174*cdf0e10cSrcweir aligned with the left edge of this <type>Shape</type>. 175*cdf0e10cSrcweir */ 176*cdf0e10cSrcweir [property] boolean TextContourFrame; 177*cdf0e10cSrcweir 178*cdf0e10cSrcweir //------------------------------------------------------------------------- 179*cdf0e10cSrcweir 180*cdf0e10cSrcweir /** With this set to <TRUE/>, the text inside of the <type>Shape</type> 181*cdf0e10cSrcweir is stretched to fit into the <type>Shape</type>. 182*cdf0e10cSrcweir */ 183*cdf0e10cSrcweir [property] com::sun::star::drawing::TextFitToSizeType TextFitToSize; 184*cdf0e10cSrcweir 185*cdf0e10cSrcweir //------------------------------------------------------------------------- 186*cdf0e10cSrcweir 187*cdf0e10cSrcweir /** adjusts the horizontal position of the text inside of 188*cdf0e10cSrcweir the <type>Shape</type>. 189*cdf0e10cSrcweir */ 190*cdf0e10cSrcweir [property] com::sun::star::drawing::TextHorizontalAdjust TextHorizontalAdjust; 191*cdf0e10cSrcweir 192*cdf0e10cSrcweir //------------------------------------------------------------------------- 193*cdf0e10cSrcweir 194*cdf0e10cSrcweir /** adjusts the vertical position of the text inside of 195*cdf0e10cSrcweir the <type>Shape</type>. 196*cdf0e10cSrcweir */ 197*cdf0e10cSrcweir [property] com::sun::star::drawing::TextVerticalAdjust TextVerticalAdjust; 198*cdf0e10cSrcweir 199*cdf0e10cSrcweir //------------------------------------------------------------------------- 200*cdf0e10cSrcweir 201*cdf0e10cSrcweir /** This is the distance from the left edge of the <type>Shape</type> 202*cdf0e10cSrcweir to the left edge of the text. 203*cdf0e10cSrcweir <p>This is only useful if <member>Text::TextHorizontalAdjust</member> is 204*cdf0e10cSrcweir <const>BLOCK</const> or <const>STRETCH</const> or if 205*cdf0e10cSrcweir <member>Text::TextFitSize</member> is <TRUE/>.</p> 206*cdf0e10cSrcweir */ 207*cdf0e10cSrcweir [property] long TextLeftDistance; 208*cdf0e10cSrcweir 209*cdf0e10cSrcweir //------------------------------------------------------------------------- 210*cdf0e10cSrcweir 211*cdf0e10cSrcweir /** This is the distance from the right edge of the <type>Shape</type> 212*cdf0e10cSrcweir to the right edge of the text. 213*cdf0e10cSrcweir 214*cdf0e10cSrcweir <p>This is only useful if <member>Text::TextHorizontalAdjust</member> is 215*cdf0e10cSrcweir <const>BLOCK</const> or <const>STRETCH</const> 216*cdf0e10cSrcweir or if <member>Text::TextFitSize</member> is <TRUE/>.</p> 217*cdf0e10cSrcweir */ 218*cdf0e10cSrcweir [property] long TextRightDistance; 219*cdf0e10cSrcweir 220*cdf0e10cSrcweir //------------------------------------------------------------------------- 221*cdf0e10cSrcweir 222*cdf0e10cSrcweir /** This is the distance from the upper edge of the <type>Shape</type> to 223*cdf0e10cSrcweir the upper edge of the text. 224*cdf0e10cSrcweir 225*cdf0e10cSrcweir <p>This is only useful if <member>Text::TextVerticalAdjust</member> is 226*cdf0e10cSrcweir <const>BLOCK</const> or if <member>Text::TextFitSize</member> is 227*cdf0e10cSrcweir <TRUE/>.</p> 228*cdf0e10cSrcweir */ 229*cdf0e10cSrcweir [property] long TextUpperDistance; 230*cdf0e10cSrcweir 231*cdf0e10cSrcweir //------------------------------------------------------------------------- 232*cdf0e10cSrcweir 233*cdf0e10cSrcweir /** This is the distance from the lower edge of the <type>Shape</type> to the 234*cdf0e10cSrcweir lower edge of the text. 235*cdf0e10cSrcweir 236*cdf0e10cSrcweir 237*cdf0e10cSrcweir 238*cdf0e10cSrcweir <p>This is only useful if <member>Text::TextVerticalAdjust</member> is 239*cdf0e10cSrcweir <const>BLOCK</const> or if <member>Text::TextFitSize</member> is 240*cdf0e10cSrcweir <TRUE/>.</p> 241*cdf0e10cSrcweir */ 242*cdf0e10cSrcweir [property] long TextLowerDistance; 243*cdf0e10cSrcweir 244*cdf0e10cSrcweir //------------------------------------------------------------------------- 245*cdf0e10cSrcweir 246*cdf0e10cSrcweir /** with this property you can set the maximum height for a shape with text. 247*cdf0e10cSrcweir On edit, the auto grow feature will not grow the object heigher than 248*cdf0e10cSrcweir the value of this property. 249*cdf0e10cSrcweir */ 250*cdf0e10cSrcweir [property] long TextMaximumFrameHeight; 251*cdf0e10cSrcweir 252*cdf0e10cSrcweir //------------------------------------------------------------------------- 253*cdf0e10cSrcweir 254*cdf0e10cSrcweir /** with this property you can set the maximum width for a shape with text. 255*cdf0e10cSrcweir On edit, the auto grow feature will not grow the objects wider than 256*cdf0e10cSrcweir the value of this property. 257*cdf0e10cSrcweir */ 258*cdf0e10cSrcweir [property] long TextMaximumFrameWidth; 259*cdf0e10cSrcweir 260*cdf0e10cSrcweir //------------------------------------------------------------------------- 261*cdf0e10cSrcweir 262*cdf0e10cSrcweir /** with this property you can set the minimum height for a shape with text. 263*cdf0e10cSrcweir On edit, the auto grow feature will not shrink the objects height smaller 264*cdf0e10cSrcweir than the value of this property. 265*cdf0e10cSrcweir */ 266*cdf0e10cSrcweir [property] long TextMinimumFrameHeight; 267*cdf0e10cSrcweir 268*cdf0e10cSrcweir //------------------------------------------------------------------------- 269*cdf0e10cSrcweir 270*cdf0e10cSrcweir /** with this property you can set the minimum width for a shape with text. 271*cdf0e10cSrcweir On edit, the auto grow feature will not shrink the object width smaller 272*cdf0e10cSrcweir than the value of this property. 273*cdf0e10cSrcweir */ 274*cdf0e10cSrcweir [property] long TextMinimumFrameWidth; 275*cdf0e10cSrcweir 276*cdf0e10cSrcweir //------------------------------------------------------------------------- 277*cdf0e10cSrcweir 278*cdf0e10cSrcweir /** This is the number of pixels the text is moved in each animation step. 279*cdf0e10cSrcweir */ 280*cdf0e10cSrcweir [property] short TextAnimationAmount; 281*cdf0e10cSrcweir 282*cdf0e10cSrcweir //------------------------------------------------------------------------- 283*cdf0e10cSrcweir 284*cdf0e10cSrcweir /** This number defines how many times the text animation is repeated. 285*cdf0e10cSrcweir <p>If this is set to zero, the repeat is endless.</p> 286*cdf0e10cSrcweir */ 287*cdf0e10cSrcweir [property] short TextAnimationCount; 288*cdf0e10cSrcweir 289*cdf0e10cSrcweir //------------------------------------------------------------------------- 290*cdf0e10cSrcweir 291*cdf0e10cSrcweir /** This is the delay in thousandths of a second between each 292*cdf0e10cSrcweir of the animation steps. 293*cdf0e10cSrcweir */ 294*cdf0e10cSrcweir [property] short TextAnimationDelay; 295*cdf0e10cSrcweir 296*cdf0e10cSrcweir //------------------------------------------------------------------------- 297*cdf0e10cSrcweir 298*cdf0e10cSrcweir /** This enumeration defines the direction in which the text moves. 299*cdf0e10cSrcweir */ 300*cdf0e10cSrcweir [property] com::sun::star::drawing::TextAnimationDirection TextAnimationDirection; 301*cdf0e10cSrcweir 302*cdf0e10cSrcweir //------------------------------------------------------------------------- 303*cdf0e10cSrcweir 304*cdf0e10cSrcweir /** This value defines the type of animation. 305*cdf0e10cSrcweir */ 306*cdf0e10cSrcweir [property] com::sun::star::drawing::TextAnimationKind TextAnimationKind; 307*cdf0e10cSrcweir 308*cdf0e10cSrcweir //------------------------------------------------------------------------- 309*cdf0e10cSrcweir 310*cdf0e10cSrcweir /** If this value is <TRUE/>, the text is visible at the start of the 311*cdf0e10cSrcweir animation. 312*cdf0e10cSrcweir */ 313*cdf0e10cSrcweir [property] boolean TextAnimationStartInside; 314*cdf0e10cSrcweir 315*cdf0e10cSrcweir //------------------------------------------------------------------------- 316*cdf0e10cSrcweir 317*cdf0e10cSrcweir /** If this value is <TRUE/>, the text is visible at the end of the 318*cdf0e10cSrcweir animation. 319*cdf0e10cSrcweir */ 320*cdf0e10cSrcweir [property] boolean TextAnimationStopInside; 321*cdf0e10cSrcweir 322*cdf0e10cSrcweir //------------------------------------------------------------------------- 323*cdf0e10cSrcweir 324*cdf0e10cSrcweir /** This value selects the writing mode for the text. 325*cdf0e10cSrcweir */ 326*cdf0e10cSrcweir [property] ::com::sun::star::text::WritingMode TextWritingMode; 327*cdf0e10cSrcweir}; 328*cdf0e10cSrcweir 329*cdf0e10cSrcweir//============================================================================= 330*cdf0e10cSrcweir 331*cdf0e10cSrcweir}; }; }; }; 332*cdf0e10cSrcweir 333*cdf0e10cSrcweir#endif 334*cdf0e10cSrcweir 335