Kaydet (Commit) 5845e737 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

handle chart wall correctly in area panel

Change-Id: Iacd9498884a20357f217e1165a3422b6f1e2aa81
üst 6301e1e8
...@@ -42,7 +42,21 @@ css::uno::Reference<css::beans::XPropertySet> getPropSet( ...@@ -42,7 +42,21 @@ css::uno::Reference<css::beans::XPropertySet> getPropSet(
css::uno::Reference<css::frame::XModel> xModel) css::uno::Reference<css::frame::XModel> xModel)
{ {
OUString aCID = getCID(xModel); OUString aCID = getCID(xModel);
return ObjectIdentifier::getObjectPropertySet(aCID, xModel); css::uno::Reference<css::beans::XPropertySet> xPropSet =
ObjectIdentifier::getObjectPropertySet(aCID, xModel);
ObjectType eType = ObjectIdentifier::getObjectType(aCID);
if (eType == OBJECTTYPE_DIAGRAM)
{
css::uno::Reference<css::chart2::XDiagram> xDiagram(
xPropSet, css::uno::UNO_QUERY);
if (!xDiagram.is())
return xPropSet;
xPropSet.set(xDiagram->getWall());
}
return xPropSet;
} }
ChartController* getController(css::uno::Reference<css::frame::XModel> xModel) ChartController* getController(css::uno::Reference<css::frame::XModel> xModel)
......
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