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_chart2_XInternalDataProvider_idl 24cdf0e10cSrcweir#define com_sun_star_chart2_XInternalDataProvider_idl 25cdf0e10cSrcweir 26cdf0e10cSrcweir#include <com/sun/star/chart2/data/XDataProvider.idl> 27cdf0e10cSrcweir#include <com/sun/star/chart2/data/XDataSequence.idl> 28cdf0e10cSrcweir 29cdf0e10cSrcweirmodule com 30cdf0e10cSrcweir{ 31cdf0e10cSrcweirmodule sun 32cdf0e10cSrcweir{ 33cdf0e10cSrcweirmodule star 34cdf0e10cSrcweir{ 35cdf0e10cSrcweirmodule chart2 36cdf0e10cSrcweir{ 37cdf0e10cSrcweir 38cdf0e10cSrcweir/** An internal DataProvider that has more access to data than a plain 39cdf0e10cSrcweir DataProvider. 40cdf0e10cSrcweir */ 41cdf0e10cSrcweirinterface XInternalDataProvider : com::sun::star::chart2::data::XDataProvider 42cdf0e10cSrcweir{ 43cdf0e10cSrcweir boolean hasDataByRangeRepresentation( [in] string aRange ); 44cdf0e10cSrcweir sequence< any > getDataByRangeRepresentation( [in] string aRange ); 45cdf0e10cSrcweir void setDataByRangeRepresentation( [in] string aRange, [in] sequence< any > aNewData ); 46cdf0e10cSrcweir 47cdf0e10cSrcweir /** @param Note that -1 is allowed as the sequence is inserted 48cdf0e10cSrcweir after the given index. So to insert a sequence as the 49cdf0e10cSrcweir new first sequence (index 0), you would pass -1 here. 50cdf0e10cSrcweir */ 51cdf0e10cSrcweir void insertSequence( [in] long nAfterIndex ); 52cdf0e10cSrcweir void deleteSequence( [in] long nAtIndex ); 53cdf0e10cSrcweir /** same as insertSequence with nAfterIndex being the largest 54cdf0e10cSrcweir current index of the data, i.e. (size - 1) 55cdf0e10cSrcweir */ 56cdf0e10cSrcweir void appendSequence(); 57cdf0e10cSrcweir 58cdf0e10cSrcweir void insertDataPointForAllSequences( [in] long nAfterIndex ); 59cdf0e10cSrcweir void deleteDataPointForAllSequences( [in] long nAtIndex ); 60cdf0e10cSrcweir void swapDataPointWithNextOneForAllSequences( [in] long nAtIndex ); 61cdf0e10cSrcweir 62cdf0e10cSrcweir /** If range representations of data sequences change due to 63cdf0e10cSrcweir internal structural changes, they must be registered at the 64cdf0e10cSrcweir data provider. 65cdf0e10cSrcweir 66cdf0e10cSrcweir <p>Sequences that are directly retrieved via the methods of 67cdf0e10cSrcweir the XDataProvider interface are already registered. If a 68cdf0e10cSrcweir labeled data sequence was created by cloning an existing one, 69cdf0e10cSrcweir it has to be explicitly registered via this method.</p> 70cdf0e10cSrcweir */ 71cdf0e10cSrcweir void registerDataSequenceForChanges( [in] data::XDataSequence xSeq ); 72cdf0e10cSrcweir 73cdf0e10cSrcweir /** insert an additional sequence for categories nLevel>=1; 74cdf0e10cSrcweir categories at level 0 are always present and cannot be inserted or deleted 75*0d3a54ffSJürgen Schmidt @since OpenOffice 3.3 76cdf0e10cSrcweir */ 77cdf0e10cSrcweir void insertComplexCategoryLevel( [in] long nLevel ); 78cdf0e10cSrcweir /** deletes an additional sequence for categories at nLevel>=1; 79cdf0e10cSrcweir categories at level 0 are always present and cannot be deleted 80*0d3a54ffSJürgen Schmidt @since OpenOffice 3.3 81cdf0e10cSrcweir */ 82cdf0e10cSrcweir void deleteComplexCategoryLevel( [in] long nLevel ); 83cdf0e10cSrcweir}; 84cdf0e10cSrcweir 85cdf0e10cSrcweir} ; // chart2 86cdf0e10cSrcweir} ; // com 87cdf0e10cSrcweir} ; // sun 88cdf0e10cSrcweir} ; // star 89cdf0e10cSrcweir 90cdf0e10cSrcweir 91cdf0e10cSrcweir#endif 92