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