Kaydet (Commit) 801e399f authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Add a means to debug the internal state of the diagram object.

Until we can render this new GL chart for real.

Change-Id: Iaf1a5fb903572c33d512705c9073b3795187f89b
üst 9153a36b
...@@ -121,9 +121,34 @@ using ::com::sun::star::uno::Reference; ...@@ -121,9 +121,34 @@ using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::Sequence; using ::com::sun::star::uno::Sequence;
using ::com::sun::star::uno::Any; using ::com::sun::star::uno::Any;
namespace namespace {
class theExplicitValueProviderUnoTunnelId : public rtl::Static<UnoTunnelIdInit, theExplicitValueProviderUnoTunnelId> {};
#if ENABLE_GL3D_BARCHART
/**
* Only used for initial debugging of the new GL chart (until we can
* visualize it).
*/
void debugGL3DOutput( ChartModel& rModel )
{ {
class theExplicitValueProviderUnoTunnelId : public rtl::Static< UnoTunnelIdInit, theExplicitValueProviderUnoTunnelId > {}; uno::Reference<XDiagram> xDiagram = rModel.getFirstDiagram();
if (!xDiagram.is())
return;
try
{
uno::Reference<beans::XPropertySet> xPropSet(xDiagram, uno::UNO_QUERY_THROW);
bool bRoundedEdge = false;
xPropSet->getPropertyValue("RoundedEdge") >>= bRoundedEdge;
fprintf(stdout, "GL3D: rounded edge = %d\n", bRoundedEdge);
}
catch (...) {}
}
#endif
} }
...@@ -2381,6 +2406,10 @@ void ChartView::createShapes() ...@@ -2381,6 +2406,10 @@ void ChartView::createShapes()
maTimeBased.bTimeBased = true; maTimeBased.bTimeBased = true;
} }
#if ENABLE_GL3D_BARCHART
debugGL3DOutput(mrChartModel);
#endif
//make sure add-in is refreshed after creating the shapes //make sure add-in is refreshed after creating the shapes
const ::comphelper::ScopeGuard aGuard( boost::bind( &ChartView::impl_refreshAddIn, this ) ); const ::comphelper::ScopeGuard aGuard( boost::bind( &ChartView::impl_refreshAddIn, this ) );
if( impl_AddInDrawsAllByItself() ) if( impl_AddInDrawsAllByItself() )
......
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