1*cde9e8dcSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*cde9e8dcSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*cde9e8dcSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*cde9e8dcSAndrew Rist  * distributed with this work for additional information
6*cde9e8dcSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*cde9e8dcSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*cde9e8dcSAndrew Rist  * "License"); you may not use this file except in compliance
9*cde9e8dcSAndrew Rist  * with the License.  You may obtain a copy of the License at
10*cde9e8dcSAndrew Rist  *
11*cde9e8dcSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*cde9e8dcSAndrew Rist  *
13*cde9e8dcSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*cde9e8dcSAndrew Rist  * software distributed under the License is distributed on an
15*cde9e8dcSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*cde9e8dcSAndrew Rist  * KIND, either express or implied.  See the License for the
17*cde9e8dcSAndrew Rist  * specific language governing permissions and limitations
18*cde9e8dcSAndrew Rist  * under the License.
19*cde9e8dcSAndrew Rist  *
20*cde9e8dcSAndrew Rist  *************************************************************/
21*cde9e8dcSAndrew Rist 
22*cde9e8dcSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
25cdf0e10cSrcweir #include "precompiled_chart2.hxx"
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include "AccStatisticsObject.hxx"
28cdf0e10cSrcweir #include <vcl/svapp.hxx>
29cdf0e10cSrcweir #include <svx/svditer.hxx>
30cdf0e10cSrcweir 
31cdf0e10cSrcweir using ::rtl::OUString;
32cdf0e10cSrcweir 
33cdf0e10cSrcweir namespace chart
34cdf0e10cSrcweir {
35cdf0e10cSrcweir 
AccStatisticsObject(const AccessibleElementInfo & rAccInfo)36cdf0e10cSrcweir AccStatisticsObject::AccStatisticsObject( const AccessibleElementInfo& rAccInfo )
37cdf0e10cSrcweir         : AccessibleChartElement( rAccInfo, false/*NoChildren*/, true/*AlwaysTransparent*/ )
38cdf0e10cSrcweir         //, m_eType( eType )
39cdf0e10cSrcweir         //, m_nSeriesIndex( nSeriesIndex )
40cdf0e10cSrcweir {
41cdf0e10cSrcweir //    ChartModel * pModel = GetChartModel();
42cdf0e10cSrcweir //    OSL_ASSERT( pModel );
43cdf0e10cSrcweir 
44cdf0e10cSrcweir     // /-- solar
45cdf0e10cSrcweir     ::vos::OGuard aSolarGuard( Application::GetSolarMutex() );
46cdf0e10cSrcweir /*    switch( eType )
47cdf0e10cSrcweir     {
48cdf0e10cSrcweir         case MEAN_VAL_LINE:
49cdf0e10cSrcweir             SetItemSet( pModel->GetAverageAttr( m_nSeriesIndex ));
50cdf0e10cSrcweir             break;
51cdf0e10cSrcweir         case ERROR_BARS:
52cdf0e10cSrcweir             SetItemSet( pModel->GetErrorAttr( m_nSeriesIndex ));
53cdf0e10cSrcweir             break;
54cdf0e10cSrcweir         case REGRESSION:
55cdf0e10cSrcweir             SetItemSet( pModel->GetRegressAttr( m_nSeriesIndex ));
56cdf0e10cSrcweir             break;
57cdf0e10cSrcweir     }*/
58cdf0e10cSrcweir     // \-- solar
59cdf0e10cSrcweir }
60cdf0e10cSrcweir 
~AccStatisticsObject()61cdf0e10cSrcweir AccStatisticsObject::~AccStatisticsObject()
62cdf0e10cSrcweir {
63cdf0e10cSrcweir }
64cdf0e10cSrcweir 
getAccessibleName()65cdf0e10cSrcweir OUString SAL_CALL AccStatisticsObject::getAccessibleName()
66cdf0e10cSrcweir     throw (::com::sun::star::uno::RuntimeException)
67cdf0e10cSrcweir {
68cdf0e10cSrcweir     return getToolTipText();
69cdf0e10cSrcweir }
70cdf0e10cSrcweir 
getImplementationName()71cdf0e10cSrcweir OUString SAL_CALL AccStatisticsObject::getImplementationName()
72cdf0e10cSrcweir     throw (::com::sun::star::uno::RuntimeException)
73cdf0e10cSrcweir {
74cdf0e10cSrcweir     return OUString( RTL_CONSTASCII_USTRINGPARAM( "StatisticsObject" ));
75cdf0e10cSrcweir }
76cdf0e10cSrcweir 
77cdf0e10cSrcweir }  // namespace chart
78