1*d1766043SAndrew Rist/************************************************************** 2cdf0e10cSrcweir * 3*d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*d1766043SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*d1766043SAndrew Rist * distributed with this work for additional information 6*d1766043SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*d1766043SAndrew Rist * "License"); you may not use this file except in compliance 9*d1766043SAndrew Rist * with the License. You may obtain a copy of the License at 10*d1766043SAndrew Rist * 11*d1766043SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*d1766043SAndrew Rist * 13*d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*d1766043SAndrew Rist * software distributed under the License is distributed on an 15*d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*d1766043SAndrew Rist * KIND, either express or implied. See the License for the 17*d1766043SAndrew Rist * specific language governing permissions and limitations 18*d1766043SAndrew Rist * under the License. 19*d1766043SAndrew Rist * 20*d1766043SAndrew Rist *************************************************************/ 21*d1766043SAndrew Rist 22*d1766043SAndrew Rist 23cdf0e10cSrcweir#ifndef com_sun_star_chart_Axis_idl 24cdf0e10cSrcweir#define com_sun_star_chart_Axis_idl 25cdf0e10cSrcweir 26cdf0e10cSrcweir#include <com/sun/star/beans/PropertySet.idl> 27cdf0e10cSrcweir 28cdf0e10cSrcweir#include <com/sun/star/chart/ChartAxisArrangeOrderType.idl> 29cdf0e10cSrcweir#include <com/sun/star/chart/ChartAxisPosition.idl> 30cdf0e10cSrcweir#include <com/sun/star/chart/ChartAxisLabelPosition.idl> 31cdf0e10cSrcweir#include <com/sun/star/chart/ChartAxisMarkPosition.idl> 32cdf0e10cSrcweir 33cdf0e10cSrcweir#include <com/sun/star/chart2/XAxis.idl> 34cdf0e10cSrcweir#include <com/sun/star/chart2/XTitled.idl> 35cdf0e10cSrcweir 36cdf0e10cSrcweir#include <com/sun/star/drawing/LineProperties.idl> 37cdf0e10cSrcweir#include <com/sun/star/style/CharacterProperties.idl> 38cdf0e10cSrcweir#include <com/sun/star/style/CharacterPropertiesAsian.idl> 39cdf0e10cSrcweir#include <com/sun/star/style/CharacterPropertiesComplex.idl> 40cdf0e10cSrcweir 41cdf0e10cSrcweirmodule com 42cdf0e10cSrcweir{ 43cdf0e10cSrcweirmodule sun 44cdf0e10cSrcweir{ 45cdf0e10cSrcweirmodule star 46cdf0e10cSrcweir{ 47cdf0e10cSrcweirmodule chart2 48cdf0e10cSrcweir{ 49cdf0e10cSrcweir 50cdf0e10cSrcweirservice Axis 51cdf0e10cSrcweir{ 52cdf0e10cSrcweir service ::com::sun::star::drawing::LineProperties; 53cdf0e10cSrcweir 54cdf0e10cSrcweir service ::com::sun::star::style::CharacterProperties; 55cdf0e10cSrcweir service ::com::sun::star::beans::PropertySet; 56cdf0e10cSrcweir [optional] service ::com::sun::star::style::CharacterPropertiesAsian; 57cdf0e10cSrcweir [optional] service ::com::sun::star::style::CharacterPropertiesComplex; 58cdf0e10cSrcweir 59cdf0e10cSrcweir interface ::com::sun::star::chart2::XAxis; 60cdf0e10cSrcweir [optional] interface ::com::sun::star::chart2::XTitled; 61cdf0e10cSrcweir 62cdf0e10cSrcweir /** Determines, whether the axis should be rendered by the view. 63cdf0e10cSrcweir */ 64cdf0e10cSrcweir [property] boolean Show; 65cdf0e10cSrcweir 66cdf0e10cSrcweir /** Determines where the axis crosses the other axis. 67cdf0e10cSrcweir */ 68cdf0e10cSrcweir [optional, property] com::sun::star::chart::ChartAxisPosition CrossoverPosition; 69cdf0e10cSrcweir 70cdf0e10cSrcweir /** Determines the scale value on the other axis when CrossoverPosition is set to VALUE. 71cdf0e10cSrcweir */ 72cdf0e10cSrcweir [optional, property] double CrossoverValue; 73cdf0e10cSrcweir 74cdf0e10cSrcweir /** Determines whether to display text at the axis or not. 75cdf0e10cSrcweir */ 76cdf0e10cSrcweir [property] boolean DisplayLabels; 77cdf0e10cSrcweir 78cdf0e10cSrcweir /** Determines where the axis labels are placed. 79cdf0e10cSrcweir */ 80cdf0e10cSrcweir [optional, property] com::sun::star::chart::ChartAxisLabelPosition LabelPosition; 81cdf0e10cSrcweir 82cdf0e10cSrcweir /** Determines how to stagger the labels at the axis (side by side, even, odd, auto ) 83cdf0e10cSrcweir */ 84cdf0e10cSrcweir [property] ::com::sun::star::chart::ChartAxisArrangeOrderType ArrangeOrder; 85cdf0e10cSrcweir 86cdf0e10cSrcweir /** Determines wether the labels are allowed to break into more than one line 87cdf0e10cSrcweir */ 88cdf0e10cSrcweir [property] boolean TextBreak; 89cdf0e10cSrcweir 90cdf0e10cSrcweir /** Determines wether the labels are allowed to overlap 91cdf0e10cSrcweir */ 92cdf0e10cSrcweir [property] boolean TextOverlap; 93cdf0e10cSrcweir 94cdf0e10cSrcweir /** Determines wether the characters in a single labels should be stacked one upon each other 95cdf0e10cSrcweir */ 96cdf0e10cSrcweir [property] boolean StackCharacters; 97cdf0e10cSrcweir 98cdf0e10cSrcweir /** Determines the rotation of the text labels in degrees 99cdf0e10cSrcweir */ 100cdf0e10cSrcweir [property] double TextRotation; 101cdf0e10cSrcweir 102cdf0e10cSrcweir /** A NumberFormat key. 103cdf0e10cSrcweir 104cdf0e10cSrcweir <p>If this property is not set, it is treated as auto. This 105cdf0e10cSrcweir means linked to the source format.</p> 106cdf0e10cSrcweir 107cdf0e10cSrcweir <p>To determine a source format, the axis can query the 108cdf0e10cSrcweir <type>XDataSequence</type>s used by the data series attached 109cdf0e10cSrcweir to it (see <member>XDataSequence::getNumberFormatKeyByIndex</member>). 110cdf0e10cSrcweir </p> 111cdf0e10cSrcweir */ 112cdf0e10cSrcweir [property, maybevoid] long NumberFormat; 113cdf0e10cSrcweir 114cdf0e10cSrcweir [property] ::com::sun::star::awt::Size ReferencePageSize; 115cdf0e10cSrcweir 116cdf0e10cSrcweir /** determines what kind of tickmarks should be shown for major ticks. 117cdf0e10cSrcweir 118cdf0e10cSrcweir @see <type>TickmarkStyle</type>. 119cdf0e10cSrcweir */ 120cdf0e10cSrcweir [property] long MajorTickmarks; 121cdf0e10cSrcweir 122cdf0e10cSrcweir /** determines what kind of tickmarks should be shown for minor ticks. 123cdf0e10cSrcweir 124cdf0e10cSrcweir @see <type>TickmarkStyle</type>. 125cdf0e10cSrcweir */ 126cdf0e10cSrcweir [property] long MinorTickmarks; 127cdf0e10cSrcweir 128cdf0e10cSrcweir /** Determines where the interval marks are placed. 129cdf0e10cSrcweir */ 130cdf0e10cSrcweir [optional, property] com::sun::star::chart::ChartAxisMarkPosition MarkPosition; 131cdf0e10cSrcweir}; 132cdf0e10cSrcweir 133cdf0e10cSrcweir} ; // chart2 134cdf0e10cSrcweir} ; // com 135cdf0e10cSrcweir} ; // sun 136cdf0e10cSrcweir} ; // star 137cdf0e10cSrcweir 138cdf0e10cSrcweir#endif 139