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

set some properties from chart line panel

Change-Id: Idbe26d7ea554512391b22299ac6dccaeaa71d584
üst 9bb03b49
...@@ -12,6 +12,11 @@ ...@@ -12,6 +12,11 @@
#include "PropertyHelper.hxx" #include "PropertyHelper.hxx"
#include "ChartController.hxx" #include "ChartController.hxx"
#include <svx/xlnwtit.hxx>
#include <svx/xlinjoit.hxx>
#include <svx/xlndsit.hxx>
#include <svx/xlntrit.hxx>
#include <com/sun/star/view/XSelectionSupplier.hpp> #include <com/sun/star/view/XSelectionSupplier.hpp>
namespace chart { namespace sidebar { namespace chart { namespace sidebar {
...@@ -174,12 +179,26 @@ void ChartLinePanel::updateModel( ...@@ -174,12 +179,26 @@ void ChartLinePanel::updateModel(
xSelectionSupplier->addSelectionChangeListener(mxSelectionListener.get()); xSelectionSupplier->addSelectionChangeListener(mxSelectionListener.get());
} }
void ChartLinePanel::setLineStyle(const XLineStyleItem& /*rItem*/) void ChartLinePanel::setLineStyle(const XLineStyleItem& rItem)
{ {
css::uno::Reference<css::beans::XPropertySet> xPropSet =
getPropSet(mxModel);
if (!xPropSet.is())
return;
xPropSet->setPropertyValue("LineStyle", css::uno::makeAny(rItem.GetValue()));
} }
void ChartLinePanel::setLineDash(const XLineDashItem& /*rItem*/) void ChartLinePanel::setLineDash(const XLineDashItem& rItem)
{ {
css::uno::Reference<css::beans::XPropertySet> xPropSet =
getPropSet(mxModel);
if (!xPropSet.is())
return;
xPropSet->setPropertyValue("LineDash", css::uno::makeAny(rItem.GetValue()));
} }
void ChartLinePanel::setLineEndStyle(const XLineEndItem* /*pItem*/) void ChartLinePanel::setLineEndStyle(const XLineEndItem* /*pItem*/)
...@@ -190,20 +209,42 @@ void ChartLinePanel::setLineStartStyle(const XLineStartItem* /*pItem*/) ...@@ -190,20 +209,42 @@ void ChartLinePanel::setLineStartStyle(const XLineStartItem* /*pItem*/)
{ {
} }
void ChartLinePanel::setLineJoint(const XLineJointItem* /*pItem*/) void ChartLinePanel::setLineJoint(const XLineJointItem* pItem)
{ {
css::uno::Reference<css::beans::XPropertySet> xPropSet =
getPropSet(mxModel);
if (!xPropSet.is())
return;
if (pItem)
xPropSet->setPropertyValue("LineJoint", css::uno::makeAny(pItem->GetValue()));
} }
void ChartLinePanel::setLineCap(const XLineCapItem* /*pItem*/) void ChartLinePanel::setLineCap(const XLineCapItem* /*pItem*/)
{ {
} }
void ChartLinePanel::setLineTransparency(const XLineTransparenceItem& /*rItem*/) void ChartLinePanel::setLineTransparency(const XLineTransparenceItem& rItem)
{ {
css::uno::Reference<css::beans::XPropertySet> xPropSet =
getPropSet(mxModel);
if (!xPropSet.is())
return;
xPropSet->setPropertyValue("LineTransparence", css::uno::makeAny(rItem.GetValue()));
} }
void ChartLinePanel::setLineWidth(const XLineWidthItem& /*rItem*/) void ChartLinePanel::setLineWidth(const XLineWidthItem& rItem)
{ {
css::uno::Reference<css::beans::XPropertySet> xPropSet =
getPropSet(mxModel);
if (!xPropSet.is())
return;
xPropSet->setPropertyValue("LineWidth", css::uno::makeAny(rItem.GetValue()));
} }
} } } }
......
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