| 1 |
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
| 2 |
/* |
| 3 |
* This file is part of the LibreOffice project. |
| 4 |
* |
| 5 |
* This Source Code Form is subject to the terms of the Mozilla Public |
| 6 |
* License, v. 2.0. If a copy of the MPL was not distributed with this |
| 7 |
* file, You can obtain one at http://mozilla.org/MPL/2.0/. |
| 8 |
* |
| 9 |
* This file incorporates work covered by the following license notice: |
| 10 |
* |
| 11 |
* Licensed to the Apache Software Foundation (ASF) under one or more |
| 12 |
* contributor license agreements. See the NOTICE file distributed |
| 13 |
* with this work for additional information regarding copyright |
| 14 |
* ownership. The ASF licenses this file to you under the Apache |
| 15 |
* License, Version 2.0 (the "License"); you may not use this file |
| 16 |
* except in compliance with the License. You may obtain a copy of |
| 17 |
* the License at http://www.apache.org/licenses/LICENSE-2.0 . |
| 18 |
*/ |
| 19 |
|
| 20 |
#include <com/sun/star/chart/ErrorBarStyle.hpp> |
| 21 |
#include <com/sun/star/chart/DataLabelPlacement.hpp> |
| 22 |
|
| 23 |
#include <vcl/svapp.hxx> |
| 24 |
#include <sal/log.hxx> |
| 25 |
|
| 26 |
#include "ChartSeriesPanel.hxx" |
| 27 |
#include <ChartController.hxx> |
| 28 |
#include <ChartModel.hxx> |
| 29 |
#include <ChartType.hxx> |
| 30 |
#include <DataSeries.hxx> |
| 31 |
#include <Diagram.hxx> |
| 32 |
#include <RegressionCurveHelper.hxx> |
| 33 |
#include <RegressionCurveModel.hxx> |
| 34 |
#include <StatisticsHelper.hxx> |
| 35 |
#include <BaseCoordinateSystem.hxx> |
| 36 |
|
| 37 |
#include <comphelper/processfactory.hxx> |
| 38 |
|
| 39 |
using namespace css; |
| 40 |
using namespace css::uno; |
| 41 |
|
| 42 |
namespace chart::sidebar { |
| 43 |
|
| 44 |
namespace { |
| 45 |
|
| 46 |
bool isDataLabelVisible(const rtl::Reference<::chart::ChartModel>& xModel, std::u16string_view rCID) |
| 47 |
{ |
| 48 |
rtl::Reference< DataSeries > xSeries = |
| 49 |
ObjectIdentifier::getDataSeriesForCID(rCID, xModel); |
| 50 |
|
| 51 |
if (!xSeries.is()) |
| 52 |
return false; |
| 53 |
|
| 54 |
return xSeries->hasDataLabelsAtSeries(); |
| 55 |
} |
| 56 |
|
| 57 |
void setDataLabelVisible(const rtl::Reference<::chart::ChartModel>& xModel, std::u16string_view rCID, bool bVisible) |
| 58 |
{ |
| 59 |
rtl::Reference< DataSeries > xSeries = |
| 60 |
ObjectIdentifier::getDataSeriesForCID(rCID, xModel); |
| 61 |
|
| 62 |
if (!xSeries.is()) |
| 63 |
return; |
| 64 |
|
| 65 |
if (bVisible) |
| 66 |
xSeries->insertDataLabelsToSeriesAndAllPoints(); |
| 67 |
else |
| 68 |
xSeries->deleteDataLabelsFromSeriesAndAllPoints(); |
| 69 |
} |
| 70 |
|
| 71 |
struct LabelPlacementMap |
| 72 |
{ |
| 73 |
sal_Int32 nPos; |
| 74 |
sal_Int32 nApi; |
| 75 |
}; |
| 76 |
|
| 77 |
LabelPlacementMap const aLabelPlacementMap[] = { |
| 78 |
{ 0, css::chart::DataLabelPlacement::TOP }, |
| 79 |
{ 1, css::chart::DataLabelPlacement::BOTTOM }, |
| 80 |
{ 2, css::chart::DataLabelPlacement::CENTER }, |
| 81 |
{ 3, css::chart::DataLabelPlacement::OUTSIDE }, |
| 82 |
{ 4, css::chart::DataLabelPlacement::INSIDE }, |
| 83 |
{ 5, css::chart::DataLabelPlacement::NEAR_ORIGIN } |
| 84 |
}; |
| 85 |
|
| 86 |
sal_Int32 getDataLabelPlacement(const rtl::Reference<::chart::ChartModel>& xModel, |
| 87 |
std::u16string_view rCID) |
| 88 |
{ |
| 89 |
rtl::Reference< DataSeries > xSeries = |
| 90 |
ObjectIdentifier::getDataSeriesForCID(rCID, xModel); |
| 91 |
|
| 92 |
if (!xSeries.is()) |
| 93 |
return 0; |
| 94 |
|
| 95 |
css::uno::Any aAny = xSeries->getPropertyValue(u"LabelPlacement"_ustr); |
| 96 |
if (!aAny.hasValue()) |
| 97 |
return 0; |
| 98 |
|
| 99 |
sal_Int32 nPlacement = 0; |
| 100 |
aAny >>= nPlacement; |
| 101 |
|
| 102 |
for (LabelPlacementMap const & i : aLabelPlacementMap) |
| 103 |
{ |
| 104 |
if (i.nApi == nPlacement) |
| 105 |
return i.nPos; |
| 106 |
} |
| 107 |
|
| 108 |
return 0; |
| 109 |
} |
| 110 |
|
| 111 |
void setDataLabelPlacement(const rtl::Reference<::chart::ChartModel>& xModel, |
| 112 |
std::u16string_view rCID, sal_Int32 nPos) |
| 113 |
{ |
| 114 |
rtl::Reference< DataSeries > xSeries = |
| 115 |
ObjectIdentifier::getDataSeriesForCID(rCID, xModel); |
| 116 |
|
| 117 |
if (!xSeries.is()) |
| 118 |
return; |
| 119 |
|
| 120 |
sal_Int32 nApi = 0; |
| 121 |
for (LabelPlacementMap const & i : aLabelPlacementMap) |
| 122 |
{ |
| 123 |
if (i.nPos == nPos) |
| 124 |
{ |
| 125 |
nApi = i.nApi; |
| 126 |
break; |
| 127 |
} |
| 128 |
} |
| 129 |
|
| 130 |
xSeries->setPropertyValue(u"LabelPlacement"_ustr, css::uno::Any(nApi)); |
| 131 |
} |
| 132 |
|
| 133 |
bool isTrendlineVisible(const rtl::Reference<::chart::ChartModel>& xModel, |
| 134 |
std::u16string_view rCID) |
| 135 |
{ |
| 136 |
rtl::Reference< DataSeries > xRegressionCurveContainer = |
| 137 |
ObjectIdentifier::getDataSeriesForCID(rCID, xModel); |
| 138 |
|
| 139 |
if (!xRegressionCurveContainer.is()) |
| 140 |
return false; |
| 141 |
|
| 142 |
return !xRegressionCurveContainer->getRegressionCurves2().empty(); |
| 143 |
} |
| 144 |
|
| 145 |
void setTrendlineVisible(const rtl::Reference<::chart::ChartModel>& |
| 146 |
xModel, std::u16string_view rCID, bool bVisible) |
| 147 |
{ |
| 148 |
rtl::Reference< DataSeries > xRegressionCurveContainer = |
| 149 |
ObjectIdentifier::getDataSeriesForCID(rCID, xModel); |
| 150 |
|
| 151 |
if (!xRegressionCurveContainer.is()) |
| 152 |
return; |
| 153 |
|
| 154 |
if (bVisible) |
| 155 |
{ |
| 156 |
RegressionCurveHelper::addRegressionCurve( |
| 157 |
SvxChartRegress::Linear, |
| 158 |
xRegressionCurveContainer); |
| 159 |
} |
| 160 |
else |
| 161 |
RegressionCurveHelper::removeAllExceptMeanValueLine( |
| 162 |
xRegressionCurveContainer ); |
| 163 |
|
| 164 |
} |
| 165 |
|
| 166 |
bool isErrorBarVisible(const rtl::Reference<::chart::ChartModel>& xModel, |
| 167 |
std::u16string_view rCID, bool bYError) |
| 168 |
{ |
| 169 |
rtl::Reference< DataSeries > xSeries = |
| 170 |
ObjectIdentifier::getDataSeriesForCID(rCID, xModel); |
| 171 |
|
| 172 |
if (!xSeries.is()) |
| 173 |
return false; |
| 174 |
|
| 175 |
return StatisticsHelper::hasErrorBars(xSeries, bYError); |
| 176 |
} |
| 177 |
|
| 178 |
void setErrorBarVisible(const rtl::Reference<::chart::ChartModel>& |
| 179 |
xModel, std::u16string_view rCID, bool bYError, bool bVisible) |
| 180 |
{ |
| 181 |
rtl::Reference< DataSeries > xSeries = |
| 182 |
ObjectIdentifier::getDataSeriesForCID(rCID, xModel); |
| 183 |
|
| 184 |
if (!xSeries.is()) |
| 185 |
return; |
| 186 |
|
| 187 |
if (bVisible) |
| 188 |
{ |
| 189 |
StatisticsHelper::addErrorBars( xSeries, |
| 190 |
css::chart::ErrorBarStyle::STANDARD_DEVIATION, |
| 191 |
bYError); |
| 192 |
} |
| 193 |
else |
| 194 |
{ |
| 195 |
StatisticsHelper::removeErrorBars( xSeries, bYError ); |
| 196 |
} |
| 197 |
} |
| 198 |
|
| 199 |
bool isPrimaryAxis(const rtl::Reference<::chart::ChartModel>& |
| 200 |
xModel, std::u16string_view rCID) |
| 201 |
{ |
| 202 |
rtl::Reference< DataSeries > xSeries = |
| 203 |
ObjectIdentifier::getDataSeriesForCID(rCID, xModel); |
| 204 |
|
| 205 |
if (!xSeries.is()) |
| 206 |
return true; |
| 207 |
|
| 208 |
return xSeries->getAttachedAxisIndex() == 0; |
| 209 |
} |
| 210 |
|
| 211 |
void setAttachedAxisType(const rtl::Reference<::chart::ChartModel>& |
| 212 |
xModel, std::u16string_view rCID, bool bPrimary) |
| 213 |
{ |
| 214 |
const rtl::Reference<DataSeries> xDataSeries = ObjectIdentifier::getDataSeriesForCID(rCID, xModel); |
| 215 |
|
| 216 |
if (!xDataSeries.is()) |
| 217 |
return; |
| 218 |
|
| 219 |
rtl::Reference<Diagram> xDiagram = xModel->getFirstChartDiagram(); |
| 220 |
xDiagram->attachSeriesToAxis(bPrimary, xDataSeries, comphelper::getProcessComponentContext()); |
| 221 |
} |
| 222 |
|
| 223 |
rtl::Reference<ChartType> getChartType( |
| 224 |
const rtl::Reference<::chart::ChartModel>& xModel) |
| 225 |
{ |
| 226 |
rtl::Reference<Diagram> xDiagram = xModel->getFirstChartDiagram(); |
| 227 |
const std::vector< rtl::Reference< BaseCoordinateSystem > > xCooSysSequence( xDiagram->getBaseCoordinateSystems()); |
| 228 |
return xCooSysSequence[0]->getChartTypes2()[0]; |
| 229 |
} |
| 230 |
|
| 231 |
OUString getSeriesLabel(const rtl::Reference<::chart::ChartModel>& xModel, std::u16string_view rCID) |
| 232 |
{ |
| 233 |
rtl::Reference< DataSeries > xSeries = |
| 234 |
ObjectIdentifier::getDataSeriesForCID(rCID, xModel); |
| 235 |
|
| 236 |
if (!xSeries.is()) |
| 237 |
return OUString(); |
| 238 |
|
| 239 |
rtl::Reference<ChartType> xChartType = getChartType(xModel); |
| 240 |
return xSeries->getLabelForRole(xChartType->getRoleOfSequenceForSeriesLabel()); |
| 241 |
} |
| 242 |
|
| 243 |
OUString getCID(const css::uno::Reference<css::frame::XModel>& xModel) |
| 244 |
{ |
| 245 |
css::uno::Reference<css::frame::XController> xController(xModel->getCurrentController()); |
| 246 |
css::uno::Reference<css::view::XSelectionSupplier> xSelectionSupplier(xController, css::uno::UNO_QUERY); |
| 247 |
if (!xSelectionSupplier.is()) |
| 248 |
return OUString(); |
| 249 |
|
| 250 |
uno::Any aAny = xSelectionSupplier->getSelection(); |
| 251 |
if (!aAny.hasValue()) |
| 252 |
return OUString(); |
| 253 |
|
| 254 |
OUString aCID; |
| 255 |
aAny >>= aCID; |
| 256 |
|
| 257 |
if (aCID.isEmpty()) |
| 258 |
return OUString(); |
| 259 |
|
| 260 |
#if defined DBG_UTIL && !defined NDEBUG |
| 261 |
ObjectType eType = ObjectIdentifier::getObjectType(aCID); |
| 262 |
if (eType != OBJECTTYPE_DATA_SERIES && |
| 263 |
eType != OBJECTTYPE_DATA_POINT && |
| 264 |
eType != OBJECTTYPE_DATA_CURVE) |
| 265 |
SAL_WARN("chart2","Selected item is not a chart series"); |
| 266 |
#endif |
| 267 |
|
| 268 |
return aCID; |
| 269 |
} |
| 270 |
|
| 271 |
} |
| 272 |
|
| 273 |
ChartSeriesPanel::ChartSeriesPanel( |
| 274 |
weld::Widget* pParent, |
| 275 |
ChartController* pController) |
| 276 |
: PanelLayout(pParent, u"ChartSeriesPanel"_ustr, u"modules/schart/ui/sidebarseries.ui"_ustr) |
| 277 |
, mxCBLabel(m_xBuilder->weld_check_button(u"checkbutton_label"_ustr)) |
| 278 |
, mxCBTrendline(m_xBuilder->weld_check_button(u"checkbutton_trendline"_ustr)) |
| 279 |
, mxCBXError(m_xBuilder->weld_check_button(u"checkbutton_x_error"_ustr)) |
| 280 |
, mxCBYError(m_xBuilder->weld_check_button(u"checkbutton_y_error"_ustr)) |
| 281 |
, mxRBPrimaryAxis(m_xBuilder->weld_radio_button(u"radiobutton_primary_axis"_ustr)) |
| 282 |
, mxRBSecondaryAxis(m_xBuilder->weld_radio_button(u"radiobutton_secondary_axis"_ustr)) |
| 283 |
, mxBoxLabelPlacement(m_xBuilder->weld_widget(u"datalabel_box"_ustr)) |
| 284 |
, mxLBLabelPlacement(m_xBuilder->weld_combo_box(u"comboboxtext_label"_ustr)) |
| 285 |
, mxFTSeriesName(m_xBuilder->weld_label(u"label_series_name"_ustr)) |
| 286 |
, mxFTSeriesTemplate(m_xBuilder->weld_label(u"label_series_tmpl"_ustr)) |
| 287 |
, mxModel(pController->getChartModel()) |
| 288 |
, mxListener(new ChartSidebarModifyListener(this)) |
| 289 |
, mxSelectionListener(new ChartSidebarSelectionListener(this, OBJECTTYPE_DATA_SERIES)) |
| 290 |
, mbModelValid(true) |
| 291 |
{ |
| 292 |
Initialize(); |
| 293 |
} |
| 294 |
|
| 295 |
ChartSeriesPanel::~ChartSeriesPanel() |
| 296 |
{ |
| 297 |
doUpdateModel(nullptr); |
| 298 |
|
| 299 |
mxCBLabel.reset(); |
| 300 |
mxCBTrendline.reset(); |
| 301 |
mxCBXError.reset(); |
| 302 |
mxCBYError.reset(); |
| 303 |
|
| 304 |
mxRBPrimaryAxis.reset(); |
| 305 |
mxRBSecondaryAxis.reset(); |
| 306 |
|
| 307 |
mxBoxLabelPlacement.reset(); |
| 308 |
mxLBLabelPlacement.reset(); |
| 309 |
|
| 310 |
mxFTSeriesName.reset(); |
| 311 |
mxFTSeriesTemplate.reset(); |
| 312 |
} |
| 313 |
|
| 314 |
void ChartSeriesPanel::Initialize() |
| 315 |
{ |
| 316 |
mxModel->addModifyListener(mxListener); |
| 317 |
css::uno::Reference<css::view::XSelectionSupplier> xSelectionSupplier(mxModel->getCurrentController(), css::uno::UNO_QUERY); |
| 318 |
if (xSelectionSupplier.is()) |
| 319 |
xSelectionSupplier->addSelectionChangeListener(mxSelectionListener); |
| 320 |
|
| 321 |
updateData(); |
| 322 |
|
| 323 |
Link<weld::Toggleable&,void> aLink = LINK(this, ChartSeriesPanel, CheckBoxHdl); |
| 324 |
mxCBLabel->connect_toggled(aLink); |
| 325 |
mxCBTrendline->connect_toggled(aLink); |
| 326 |
mxCBXError->connect_toggled(aLink); |
| 327 |
mxCBYError->connect_toggled(aLink); |
| 328 |
|
| 329 |
Link<weld::Toggleable&,void> aLink2 = LINK(this, ChartSeriesPanel, RadioBtnHdl); |
| 330 |
mxRBPrimaryAxis->connect_toggled(aLink2); |
| 331 |
mxRBSecondaryAxis->connect_toggled(aLink2); |
| 332 |
|
| 333 |
mxLBLabelPlacement->connect_changed(LINK(this, ChartSeriesPanel, ListBoxHdl)); |
| 334 |
} |
| 335 |
|
| 336 |
void ChartSeriesPanel::updateData() |
| 337 |
{ |
| 338 |
if (!mbModelValid) |
| 339 |
return; |
| 340 |
|
| 341 |
OUString aCID = getCID(mxModel); |
| 342 |
ObjectType eType = ObjectIdentifier::getObjectType(aCID); |
| 343 |
if (eType!=OBJECTTYPE_DATA_SERIES && |
| 344 |
eType != OBJECTTYPE_DATA_POINT && |
| 345 |
eType != OBJECTTYPE_DATA_CURVE) |
| 346 |
return; |
| 347 |
|
| 348 |
SolarMutexGuard aGuard; |
| 349 |
bool bLabelVisible = isDataLabelVisible(mxModel, aCID); |
| 350 |
mxCBLabel->set_active(bLabelVisible); |
| 351 |
mxCBTrendline->set_active(isTrendlineVisible(mxModel, aCID)); |
| 352 |
mxCBXError->set_active(isErrorBarVisible(mxModel, aCID, false)); |
| 353 |
mxCBYError->set_active(isErrorBarVisible(mxModel, aCID, true)); |
| 354 |
|
| 355 |
bool bPrimaryAxis = isPrimaryAxis(mxModel, aCID); |
| 356 |
mxRBPrimaryAxis->set_active(bPrimaryAxis); |
| 357 |
mxRBSecondaryAxis->set_active(!bPrimaryAxis); |
| 358 |
|
| 359 |
mxBoxLabelPlacement->set_sensitive(bLabelVisible); |
| 360 |
mxLBLabelPlacement->set_active(getDataLabelPlacement(mxModel, aCID)); |
| 361 |
|
| 362 |
OUString aFrameLabel = mxFTSeriesTemplate->get_label(); |
| 363 |
aFrameLabel = aFrameLabel.replaceFirst("%1", getSeriesLabel(mxModel, aCID)); |
| 364 |
mxFTSeriesName->set_label(aFrameLabel); |
| 365 |
} |
| 366 |
|
| 367 |
std::unique_ptr<PanelLayout> ChartSeriesPanel::Create ( |
| 368 |
weld::Widget* pParent, |
| 369 |
ChartController* pController) |
| 370 |
{ |
| 371 |
if (pParent == nullptr) |
| 372 |
throw lang::IllegalArgumentException(u"no parent Window given to ChartSeriesPanel::Create"_ustr, nullptr, 0); |
| 373 |
|
| 374 |
return std::make_unique<ChartSeriesPanel>(pParent, pController); |
| 375 |
} |
| 376 |
|
| 377 |
void ChartSeriesPanel::DataChanged(const DataChangedEvent& rEvent) |
| 378 |
{ |
| 379 |
PanelLayout::DataChanged(rEvent); |
| 380 |
updateData(); |
| 381 |
} |
| 382 |
|
| 383 |
void ChartSeriesPanel::HandleContextChange( |
| 384 |
const vcl::EnumContext& ) |
| 385 |
{ |
| 386 |
updateData(); |
| 387 |
} |
| 388 |
|
| 389 |
void ChartSeriesPanel::NotifyItemUpdate( |
| 390 |
sal_uInt16 /*nSID*/, |
| 391 |
SfxItemState /*eState*/, |
| 392 |
const SfxPoolItem* /*pState*/ ) |
| 393 |
{ |
| 394 |
} |
| 395 |
|
| 396 |
void ChartSeriesPanel::modelInvalid() |
| 397 |
{ |
| 398 |
mbModelValid = false; |
| 399 |
} |
| 400 |
|
| 401 |
void ChartSeriesPanel::doUpdateModel(const rtl::Reference<::chart::ChartModel>& xModel) |
| 402 |
{ |
| 403 |
if (mbModelValid) |
| 404 |
{ |
| 405 |
mxModel->removeModifyListener(mxListener); |
| 406 |
} |
| 407 |
|
| 408 |
css::uno::Reference<css::view::XSelectionSupplier> oldSelectionSupplier( |
| 409 |
mxModel->getCurrentController(), css::uno::UNO_QUERY); |
| 410 |
if (oldSelectionSupplier.is()) { |
| 411 |
oldSelectionSupplier->removeSelectionChangeListener(mxSelectionListener); |
| 412 |
} |
| 413 |
|
| 414 |
mxModel = xModel; |
| 415 |
mbModelValid = mxModel.is(); |
| 416 |
|
| 417 |
if (!mbModelValid) |
| 418 |
return; |
| 419 |
|
| 420 |
mxModel->addModifyListener(mxListener); |
| 421 |
|
| 422 |
css::uno::Reference<css::view::XSelectionSupplier> xSelectionSupplier(mxModel->getCurrentController(), css::uno::UNO_QUERY); |
| 423 |
if (xSelectionSupplier.is()) |
| 424 |
xSelectionSupplier->addSelectionChangeListener(mxSelectionListener); |
| 425 |
} |
| 426 |
|
| 427 |
void ChartSeriesPanel::updateModel(css::uno::Reference<css::frame::XModel> xModel) |
| 428 |
{ |
| 429 |
::chart::ChartModel* pModel = dynamic_cast<::chart::ChartModel*>(xModel.get()); |
| 430 |
assert(!xModel || pModel); |
| 431 |
doUpdateModel(pModel); |
| 432 |
} |
| 433 |
|
| 434 |
void ChartSeriesPanel::selectionChanged(bool bCorrectType) |
| 435 |
{ |
| 436 |
if (bCorrectType) |
| 437 |
updateData(); |
| 438 |
} |
| 439 |
|
| 440 |
IMPL_LINK(ChartSeriesPanel, CheckBoxHdl, weld::Toggleable&, rCheckBox, void) |
| 441 |
{ |
| 442 |
bool bChecked = rCheckBox.get_active(); |
| 443 |
OUString aCID = getCID(mxModel); |
| 444 |
if (&rCheckBox == mxCBLabel.get()) |
| 445 |
setDataLabelVisible(mxModel, aCID, bChecked); |
| 446 |
else if (&rCheckBox == mxCBTrendline.get()) |
| 447 |
setTrendlineVisible(mxModel, aCID, bChecked); |
| 448 |
else if (&rCheckBox == mxCBXError.get()) |
| 449 |
setErrorBarVisible(mxModel, aCID, false, bChecked); |
| 450 |
else if (&rCheckBox == mxCBYError.get()) |
| 451 |
setErrorBarVisible(mxModel, aCID, true, bChecked); |
| 452 |
} |
| 453 |
|
| 454 |
IMPL_LINK_NOARG(ChartSeriesPanel, RadioBtnHdl, weld::Toggleable&, void) |
| 455 |
{ |
| 456 |
OUString aCID = getCID(mxModel); |
| 457 |
bool bChecked = mxRBPrimaryAxis->get_active(); |
| 458 |
|
| 459 |
setAttachedAxisType(mxModel, aCID, bChecked); |
| 460 |
} |
| 461 |
|
| 462 |
IMPL_LINK_NOARG(ChartSeriesPanel, ListBoxHdl, weld::ComboBox&, void) |
| 463 |
{ |
| 464 |
OUString aCID = getCID(mxModel); |
| 465 |
|
| 466 |
sal_Int32 nPos = mxLBLabelPlacement->get_active(); |
| 467 |
setDataLabelPlacement(mxModel, aCID, nPos); |
| 468 |
} |
| 469 |
|
| 470 |
} // end of namespace ::chart::sidebar |
| 471 |
|
| 472 |
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |