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