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_chart_ChartAxis_idl__ 24cdf0e10cSrcweir#define __com_sun_star_chart_ChartAxis_idl__ 25cdf0e10cSrcweir 26cdf0e10cSrcweir#ifndef __com_sun_star_drawing_LineProperties_idl__ 27cdf0e10cSrcweir#include <com/sun/star/drawing/LineProperties.idl> 28cdf0e10cSrcweir#endif 29cdf0e10cSrcweir 30cdf0e10cSrcweir#ifndef __com_sun_star_style_CharacterProperties_idl__ 31cdf0e10cSrcweir#include <com/sun/star/style/CharacterProperties.idl> 32cdf0e10cSrcweir#endif 33cdf0e10cSrcweir 34cdf0e10cSrcweir#ifndef __com_sun_star_beans_XPropertySet_idl__ 35cdf0e10cSrcweir#include <com/sun/star/beans/XPropertySet.idl> 36cdf0e10cSrcweir#endif 37cdf0e10cSrcweir 38cdf0e10cSrcweir#ifndef __com_sun_star_chart_ChartAxisArrangeOrderType_idl__ 39cdf0e10cSrcweir#include <com/sun/star/chart/ChartAxisArrangeOrderType.idl> 40cdf0e10cSrcweir#endif 41cdf0e10cSrcweir 42cdf0e10cSrcweir#ifndef __com_sun_star_chart_ChartAxisPosition_idl__ 43cdf0e10cSrcweir#include <com/sun/star/chart/ChartAxisPosition.idl> 44cdf0e10cSrcweir#endif 45cdf0e10cSrcweir 46cdf0e10cSrcweir#ifndef __com_sun_star_chart_ChartAxisLabelPosition_idl__ 47cdf0e10cSrcweir#include <com/sun/star/chart/ChartAxisLabelPosition.idl> 48cdf0e10cSrcweir#endif 49cdf0e10cSrcweir 50cdf0e10cSrcweir#ifndef __com_sun_star_chart_ChartAxisMarkPosition_idl__ 51cdf0e10cSrcweir#include <com/sun/star/chart/ChartAxisMarkPosition.idl> 52cdf0e10cSrcweir#endif 53cdf0e10cSrcweir 54cdf0e10cSrcweir#ifndef __com_sun_star_chart_ChartAxisType_idl__ 55cdf0e10cSrcweir#include <com/sun/star/chart/ChartAxisType.idl> 56cdf0e10cSrcweir#endif 57cdf0e10cSrcweir 58cdf0e10cSrcweir#ifndef __com_sun_star_chart_TimeIncrement_idl__ 59cdf0e10cSrcweir#include <com/sun/star/chart/TimeIncrement.idl> 60cdf0e10cSrcweir#endif 61cdf0e10cSrcweir 62cdf0e10cSrcweir#ifndef __com_sun_star_chart_XAxis_idl__ 63cdf0e10cSrcweir#include <com/sun/star/chart/XAxis.idl> 64cdf0e10cSrcweir#endif 65cdf0e10cSrcweir 66cdf0e10cSrcweir#ifndef _com_sun_star_xml_UserDefinedAttributeSupplier_idl_ 67cdf0e10cSrcweir#include <com/sun/star/xml/UserDefinedAttributeSupplier.idl> 68cdf0e10cSrcweir#endif 69cdf0e10cSrcweir 70cdf0e10cSrcweir//============================================================================= 71cdf0e10cSrcweir 72cdf0e10cSrcweir module com { module sun { module star { module chart { 73cdf0e10cSrcweir 74cdf0e10cSrcweir//============================================================================= 75cdf0e10cSrcweir 76cdf0e10cSrcweir/** Specifies the axes in a diagram. 77cdf0e10cSrcweir 78cdf0e10cSrcweir <p>Note: The text properties correlate to all axis description 79cdf0e10cSrcweir elements, not to just a single text element.</p> 80cdf0e10cSrcweir */ 81cdf0e10cSrcweirpublished service ChartAxis 82cdf0e10cSrcweir{ 83cdf0e10cSrcweir /** set the properties for the entire axis line as well as for the 84cdf0e10cSrcweir tick marks. 85cdf0e10cSrcweir */ 86cdf0e10cSrcweir service com::sun::star::drawing::LineProperties; 87cdf0e10cSrcweir 88cdf0e10cSrcweir /** set the properties for all text labels of the axis 89cdf0e10cSrcweir */ 90cdf0e10cSrcweir service com::sun::star::style::CharacterProperties; 91cdf0e10cSrcweir 92cdf0e10cSrcweir /** If a <type>ChartAxis</type> may be stored as XML element, this 93cdf0e10cSrcweir service should be supported in order to preserve unparsed XML 94cdf0e10cSrcweir attributes. 95cdf0e10cSrcweir 960d3a54ffSJürgen Schmidt @since OpenOffice 1.1.2 97cdf0e10cSrcweir */ 98cdf0e10cSrcweir [optional] service com::sun::star::xml::UserDefinedAttributeSupplier; 99cdf0e10cSrcweir 100cdf0e10cSrcweir /** Access to the sub elements of an axis like title and grids. 1010d3a54ffSJürgen Schmidt @since OpenOffice 3.4 102cdf0e10cSrcweir */ 103cdf0e10cSrcweir [optional] interface com::sun::star::chart::XAxis; 104cdf0e10cSrcweir 105cdf0e10cSrcweir interface com::sun::star::beans::XPropertySet; 106cdf0e10cSrcweir 107cdf0e10cSrcweir //------------------------------------------------------------------------- 108cdf0e10cSrcweir /** Properties for scaling: 109cdf0e10cSrcweir */ 110cdf0e10cSrcweir 111cdf0e10cSrcweir //------------------------------------------------------------------------- 112cdf0e10cSrcweir 113cdf0e10cSrcweir /** Contains the maximum value for the axis scale. 114cdf0e10cSrcweir */ 115cdf0e10cSrcweir [optional, property] double Max; 116cdf0e10cSrcweir 117cdf0e10cSrcweir //------------------------------------------------------------------------- 118cdf0e10cSrcweir 119cdf0e10cSrcweir /** Contains the minimum value for the axis scale. 120cdf0e10cSrcweir */ 121cdf0e10cSrcweir [optional, property] double Min; 122cdf0e10cSrcweir 123cdf0e10cSrcweir //------------------------------------------------------------------------- 124cdf0e10cSrcweir 125cdf0e10cSrcweir /** Contains the distance between the main tick marks. 126cdf0e10cSrcweir */ 127cdf0e10cSrcweir [optional, property] double StepMain; 128cdf0e10cSrcweir 129cdf0e10cSrcweir //------------------------------------------------------------------------- 130cdf0e10cSrcweir 131cdf0e10cSrcweir /** 132cdf0e10cSrcweir Contains the number of help intervals within a main interval. E.g. a StepHelpCount of 5 divides 133cdf0e10cSrcweir the main interval into 5 pieces and thus producces 4 help tick marks. 134cdf0e10cSrcweir */ 135cdf0e10cSrcweir [optional, property] long StepHelpCount; 136cdf0e10cSrcweir 137cdf0e10cSrcweir //------------------------------------------------------------------------- 138cdf0e10cSrcweir 139cdf0e10cSrcweir /** @deprecated 140cdf0e10cSrcweir User property StepHelpCount instead 141cdf0e10cSrcweir Contains the distance between the help tick marks. 142cdf0e10cSrcweir */ 143cdf0e10cSrcweir [optional, property] double StepHelp; 144cdf0e10cSrcweir 145cdf0e10cSrcweir //------------------------------------------------------------------------- 146cdf0e10cSrcweir 147cdf0e10cSrcweir /** The maximium value of the axis scale is calculated by the chart if 148cdf0e10cSrcweir this property is <TRUE/>. 149cdf0e10cSrcweir */ 150cdf0e10cSrcweir [optional, property] boolean AutoMax; 151cdf0e10cSrcweir 152cdf0e10cSrcweir //------------------------------------------------------------------------- 153cdf0e10cSrcweir 154cdf0e10cSrcweir /** The minimum value of the axis scale is calculated by the chart if 155cdf0e10cSrcweir this property is <TRUE/>. 156cdf0e10cSrcweir */ 157cdf0e10cSrcweir [optional, property] boolean AutoMin; 158cdf0e10cSrcweir 159cdf0e10cSrcweir //------------------------------------------------------------------------- 160cdf0e10cSrcweir 161cdf0e10cSrcweir /** The distance between the main tick marks is calculated by the chart 162cdf0e10cSrcweir if this property is <TRUE/>. 163cdf0e10cSrcweir */ 164cdf0e10cSrcweir [optional, property] boolean AutoStepMain; 165cdf0e10cSrcweir 166cdf0e10cSrcweir //------------------------------------------------------------------------- 167cdf0e10cSrcweir 168cdf0e10cSrcweir /** The number of help intervals within a main interval is calculated by the 169cdf0e10cSrcweir chart if this property is <TRUE/>. 170cdf0e10cSrcweir */ 171cdf0e10cSrcweir [optional, property] boolean AutoStepHelp; 172cdf0e10cSrcweir 173cdf0e10cSrcweir 174cdf0e10cSrcweir //------------------------------------------------------------------------- 175cdf0e10cSrcweir 176cdf0e10cSrcweir /** Determines if the axis is scaled logarithmically or 177cdf0e10cSrcweir not (linear). 178cdf0e10cSrcweir */ 179cdf0e10cSrcweir [optional, property] boolean Logarithmic; 180cdf0e10cSrcweir 181cdf0e10cSrcweir //------------------------------------------------------------------------- 182cdf0e10cSrcweir 183cdf0e10cSrcweir /** determines which type of axis this is, e.g. a date-axis or a category-axis @see ChartAxisType 1840d3a54ffSJürgen Schmidt @since OpenOffice 3.4 185cdf0e10cSrcweir */ 186cdf0e10cSrcweir [optional, property] long AxisType; 187cdf0e10cSrcweir 188cdf0e10cSrcweir //------------------------------------------------------------------------- 189cdf0e10cSrcweir 190*a893be29SPedro Giffuni /** if the current axis is a date-axis the intervals are chosen as given with TimeIncrement 1910d3a54ffSJürgen Schmidt @since OpenOffice 3.4 192cdf0e10cSrcweir */ 193cdf0e10cSrcweir [optional, maybevoid, property] TimeIncrement TimeIncrement; 194cdf0e10cSrcweir 195cdf0e10cSrcweir //------------------------------------------------------------------------- 196cdf0e10cSrcweir 197cdf0e10cSrcweir /** Determines if the axis orientation is mathematical or reversed. 198cdf0e10cSrcweir */ 199cdf0e10cSrcweir [optional, property] boolean ReverseDirection; 200cdf0e10cSrcweir 201cdf0e10cSrcweir //------------------------------------------------------------------------- 202cdf0e10cSrcweir 203cdf0e10cSrcweir /** Determines where the axis crosses the other axis. 204cdf0e10cSrcweir */ 205cdf0e10cSrcweir [optional, property] com::sun::star::chart::ChartAxisPosition CrossoverPosition; 206cdf0e10cSrcweir 207cdf0e10cSrcweir //------------------------------------------------------------------------- 208cdf0e10cSrcweir 209cdf0e10cSrcweir /** Determines the scale value on the other axis when CrossoverPosition is set to VALUE. 210cdf0e10cSrcweir */ 211cdf0e10cSrcweir [optional, property] double CrossoverValue; 212cdf0e10cSrcweir 213cdf0e10cSrcweir //------------------------------------------------------------------------- 214cdf0e10cSrcweir 215cdf0e10cSrcweir /** Indicates the reference value where bars or areas have their grounding. 216cdf0e10cSrcweir This property has only an effect when the used odf fileformat does not allow for 217cdf0e10cSrcweir further axis posiioning or the axis is a secondary y-axis. 218cdf0e10cSrcweir */ 219cdf0e10cSrcweir [optional, property] double Origin; 220cdf0e10cSrcweir 221cdf0e10cSrcweir //------------------------------------------------------------------------- 222cdf0e10cSrcweir 223cdf0e10cSrcweir /** The origin is calculated by the chart if this property is <TRUE/>. 224cdf0e10cSrcweir */ 225cdf0e10cSrcweir [optional, property] boolean AutoOrigin; 226cdf0e10cSrcweir 227cdf0e10cSrcweir //------------------------------------------------------------------------- 228cdf0e10cSrcweir /** Properties for interval marks: 229cdf0e10cSrcweir */ 230cdf0e10cSrcweir 231cdf0e10cSrcweir //------------------------------------------------------------------------- 232cdf0e10cSrcweir 233cdf0e10cSrcweir /** Determines the type of the marks.@see ChartAxisMarks 234cdf0e10cSrcweir */ 235cdf0e10cSrcweir [property] long Marks; 236cdf0e10cSrcweir 237cdf0e10cSrcweir //------------------------------------------------------------------------- 238cdf0e10cSrcweir 239cdf0e10cSrcweir /** Determines the type of the help marks.@see ChartAxisMarks 240cdf0e10cSrcweir */ 241cdf0e10cSrcweir [property] long HelpMarks; 242cdf0e10cSrcweir //------------------------------------------------------------------------- 243cdf0e10cSrcweir 244cdf0e10cSrcweir /** Determines where the interval marks are placed. 245cdf0e10cSrcweir */ 246cdf0e10cSrcweir [optional, property] com::sun::star::chart::ChartAxisMarkPosition MarkPosition; 247cdf0e10cSrcweir 248cdf0e10cSrcweir //------------------------------------------------------------------------- 249cdf0e10cSrcweir /** Properties for axes labels: 250cdf0e10cSrcweir */ 251cdf0e10cSrcweir 252cdf0e10cSrcweir //------------------------------------------------------------------------- 253cdf0e10cSrcweir 254cdf0e10cSrcweir /** Determines whether to display text at the axis or not. 255cdf0e10cSrcweir */ 256cdf0e10cSrcweir [property] boolean DisplayLabels; 257cdf0e10cSrcweir 258cdf0e10cSrcweir //------------------------------------------------------------------------- 259cdf0e10cSrcweir 260cdf0e10cSrcweir /** Contains the type id for the number formatter of the axis. 261cdf0e10cSrcweir 262cdf0e10cSrcweir @see com::sun::star::util::XNumberFormatter 263cdf0e10cSrcweir */ 264cdf0e10cSrcweir [property] long NumberFormat; 265cdf0e10cSrcweir 266cdf0e10cSrcweir //------------------------------------------------------------------------- 267cdf0e10cSrcweir 268cdf0e10cSrcweir /** determines whether to use the number format given by the 269cdf0e10cSrcweir container application, e.g. a spreadsheet document, or from 270cdf0e10cSrcweir the own property <member>NumberFormat</member>. 271cdf0e10cSrcweir */ 272cdf0e10cSrcweir [optional, property] boolean LinkNumberFormatToSource; 273cdf0e10cSrcweir 274cdf0e10cSrcweir //------------------------------------------------------------------------- 275cdf0e10cSrcweir 276cdf0e10cSrcweir /** Determines where the axis labels are placed. 277cdf0e10cSrcweir */ 278cdf0e10cSrcweir [optional, property] com::sun::star::chart::ChartAxisLabelPosition LabelPosition; 279cdf0e10cSrcweir 280cdf0e10cSrcweir //------------------------------------------------------------------------- 281cdf0e10cSrcweir 282cdf0e10cSrcweir /** Determines the rotation of the text elements 283cdf0e10cSrcweir (axis description) in 100th degrees. 284cdf0e10cSrcweir */ 285cdf0e10cSrcweir [property] long TextRotation; 286cdf0e10cSrcweir 287cdf0e10cSrcweir //------------------------------------------------------------------------- 288cdf0e10cSrcweir 289cdf0e10cSrcweir /** The axis description may be arranged in a special order for a 290cdf0e10cSrcweir better placement. 291cdf0e10cSrcweir */ 292cdf0e10cSrcweir [property] com::sun::star::chart::ChartAxisArrangeOrderType ArrangeOrder; 293cdf0e10cSrcweir 294cdf0e10cSrcweir //------------------------------------------------------------------------- 295cdf0e10cSrcweir 296cdf0e10cSrcweir /** Determines if long text is broken into multiple lines. 297cdf0e10cSrcweir */ 298cdf0e10cSrcweir [property] boolean TextBreak; 299cdf0e10cSrcweir 300cdf0e10cSrcweir //------------------------------------------------------------------------- 301cdf0e10cSrcweir 302cdf0e10cSrcweir /** Determines if certain labels are hidden, if they would otherwise overlap. 303cdf0e10cSrcweir In this case, the value of this property must be set to <FALSE/>. 304cdf0e10cSrcweir */ 305cdf0e10cSrcweir [property] boolean TextCanOverlap; 306cdf0e10cSrcweir 307cdf0e10cSrcweir //------------------------------------------------------------------------- 308cdf0e10cSrcweir /** Properties related to bar charts: 309cdf0e10cSrcweir */ 310cdf0e10cSrcweir 311cdf0e10cSrcweir //------------------------------------------------------------------------- 312cdf0e10cSrcweir 313cdf0e10cSrcweir /** Determines the overlap of the bars in a bar-type chart. 314cdf0e10cSrcweir 315cdf0e10cSrcweir <p>The value is given in percent of the width of the bars. The 316cdf0e10cSrcweir valid range is -100% to +100%. +100% means full overlap, -100% 317cdf0e10cSrcweir indicates a distance of one bar between 2 neighboring bars.</p> 318cdf0e10cSrcweir */ 319cdf0e10cSrcweir [property] long Overlap; 320cdf0e10cSrcweir 321cdf0e10cSrcweir //------------------------------------------------------------------------- 322cdf0e10cSrcweir 323cdf0e10cSrcweir /** Specifies the width of the gaps between each set of data points 324cdf0e10cSrcweir in a bar chart. 325cdf0e10cSrcweir 326cdf0e10cSrcweir <p>The value is given in percent of the width of a bar; the 327cdf0e10cSrcweir valid range is 0 to 600%.</p> 328cdf0e10cSrcweir */ 329cdf0e10cSrcweir [property] long GapWidth; 330cdf0e10cSrcweir}; 331cdf0e10cSrcweir 332cdf0e10cSrcweir//============================================================================= 333cdf0e10cSrcweir 334cdf0e10cSrcweir}; }; }; }; 335cdf0e10cSrcweir 336cdf0e10cSrcweir#endif 337