Kaydet (Commit) 8d57c90b authored tarafından Tor Lillqvist's avatar Tor Lillqvist

WaE: unused function 'isGL3DDiagram'

Change-Id: I0af5bf5e7d36036b3f0c98d01c8549c2b8e1aa1f
üst 35e260c4
...@@ -536,41 +536,6 @@ void ScTabViewShell::DoReadUserDataSequence( const uno::Sequence < beans::Proper ...@@ -536,41 +536,6 @@ void ScTabViewShell::DoReadUserDataSequence( const uno::Sequence < beans::Proper
//! if ViewData has more tables than document, remove tables in ViewData //! if ViewData has more tables than document, remove tables in ViewData
} }
namespace {
bool isGL3DDiagram( const css::uno::Reference<css::chart2::XDiagram>& xDiagram )
{
uno::Reference<chart2::XCoordinateSystemContainer> xCooSysContainer(xDiagram, uno::UNO_QUERY);
if (!xCooSysContainer.is())
return false;
uno::Sequence< uno::Reference<chart2::XCoordinateSystem> > aCooSysList = xCooSysContainer->getCoordinateSystems();
for (sal_Int32 nCS = 0; nCS < aCooSysList.getLength(); ++nCS)
{
uno::Reference<chart2::XCoordinateSystem> xCooSys = aCooSysList[nCS];
//iterate through all chart types in the current coordinate system
uno::Reference<chart2::XChartTypeContainer> xChartTypeContainer(xCooSys, uno::UNO_QUERY);
OSL_ASSERT( xChartTypeContainer.is());
if( !xChartTypeContainer.is() )
continue;
uno::Sequence< uno::Reference<chart2::XChartType> > aChartTypeList = xChartTypeContainer->getChartTypes();
for( sal_Int32 nT = 0; nT < aChartTypeList.getLength(); ++nT )
{
uno::Reference<chart2::XChartType> xChartType = aChartTypeList[nT];
OUString aChartType = xChartType->getChartType();
if( aChartType == "com.sun.star.chart2.GL3DBarChartType" )
return true;
}
}
return false;
}
}
// DoReadUserData is also called from ctor when switching from print preview // DoReadUserData is also called from ctor when switching from print preview
void ScTabViewShell::DoReadUserData( const OUString& rData ) void ScTabViewShell::DoReadUserData( const OUString& rData )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment