LibreOffice Module chart2 (master) 1
|
#include <SeriesOptionsItemConverter.hxx>
Public Member Functions | |
SeriesOptionsItemConverter (const rtl::Reference<::chart::ChartModel > &xChartModel, css::uno::Reference< css::uno::XComponentContext > xContext, const rtl::Reference<::chart::DataSeries > &rPropertySet, SfxItemPool &rItemPool) | |
virtual | ~SeriesOptionsItemConverter () override |
Public Member Functions inherited from chart::wrapper::ItemConverter | |
ItemConverter (css::uno::Reference< css::beans::XPropertySet > xPropertySet, SfxItemPool &rItemPool) | |
Construct an item converter that uses the given property set for reading/writing converted items. More... | |
virtual | ~ItemConverter () override |
virtual void | FillItemSet (SfxItemSet &rOutItemSet) const |
applies all properties that can be mapped to items into the given item set. More... | |
virtual bool | ApplyItemSet (const SfxItemSet &rItemSet) |
applies all properties that are results of a conversion from all items in rItemSet to the internal XPropertySet. More... | |
SfxItemSet | CreateEmptyItemSet () const |
creates an empty item set using the given pool or a common pool if empty (see GetItemPool) and allowing all items given in the ranges returned by GetWhichPairs. More... | |
Protected Member Functions | |
virtual const WhichRangesContainer & | GetWhichPairs () const override |
implement this method to provide an array of which-ranges More... | |
virtual bool | GetItemProperty (tWhichIdType nWhichId, tPropertyNameWithMemberId &rOutProperty) const override |
implement this method to return a Property object for a given which id. More... | |
virtual void | FillSpecialItem (sal_uInt16 nWhichId, SfxItemSet &rOutItemSet) const override |
for items that can not be mapped directly to a property. More... | |
virtual bool | ApplySpecialItem (sal_uInt16 nWhichId, const SfxItemSet &rItemSet) override |
for items that can not be mapped directly to a property. More... | |
Protected Member Functions inherited from chart::wrapper::ItemConverter | |
virtual const WhichRangesContainer & | GetWhichPairs () const =0 |
implement this method to provide an array of which-ranges More... | |
virtual bool | GetItemProperty (tWhichIdType nWhichId, tPropertyNameWithMemberId &rOutProperty) const =0 |
implement this method to return a Property object for a given which id. More... | |
virtual void | FillSpecialItem (sal_uInt16 nWhichId, SfxItemSet &rOutItemSet) const |
for items that can not be mapped directly to a property. More... | |
virtual bool | ApplySpecialItem (sal_uInt16 nWhichId, const SfxItemSet &rItemSet) |
for items that can not be mapped directly to a property. More... | |
SfxItemPool & | GetItemPool () const |
Returns the pool. More... | |
const css::uno::Reference< css::beans::XPropertySet > & | GetPropertySet () const |
Returns the XPropertySet that was given in the CTOR and is used to apply items in ApplyItemSet(). More... | |
virtual void | _disposing (const css::lang::EventObject &rSource) override |
void | resetPropertySet (const css::uno::Reference< css::beans::XPropertySet > &xPropSet) |
sets a new property set, that you get with GetPropertySet(). More... | |
Protected Member Functions inherited from utl::OEventListenerAdapter | |
OEventListenerAdapter () | |
virtual | ~OEventListenerAdapter () |
void | startComponentListening (const css::uno::Reference< css::lang::XComponent > &_rxComp) |
void | stopComponentListening (const css::uno::Reference< css::lang::XComponent > &_rxComp) |
void | stopAllComponentListening () |
virtual void | _disposing (const css::lang::EventObject &_rSource)=0 |
Private Attributes | |
rtl::Reference<::chart::ChartModel > | m_xChartModel |
css::uno::Reference< css::uno::XComponentContext > | m_xCC |
bool | m_bAttachToMainAxis |
bool | m_bSupportingOverlapAndGapWidthProperties |
bool | m_bSupportingBarConnectors |
sal_Int32 | m_nBarOverlap |
sal_Int32 | m_nGapWidth |
bool | m_bConnectBars |
bool | m_bSupportingAxisSideBySide |
bool | m_bGroupBarsPerAxis |
bool | m_bSupportingStartingAngle |
sal_Int32 | m_nStartingAngle |
bool | m_bClockwise |
rtl::Reference< ::chart::BaseCoordinateSystem > | m_xCooSys |
css::uno::Sequence< sal_Int32 > | m_aSupportedMissingValueTreatments |
sal_Int32 | m_nMissingValueTreatment |
bool | m_bSupportingPlottingOfHiddenCells |
bool | m_bIncludeHiddenCells |
bool | m_bHideLegendEntry |
Additional Inherited Members | |
Public Types inherited from chart::wrapper::ItemConverter | |
typedef sal_uInt16 | tWhichIdType |
typedef OUString | tPropertyNameType |
typedef sal_uInt8 | tMemberIdType |
typedef std::pair< tPropertyNameType, tMemberIdType > | tPropertyNameWithMemberId |
Static Public Member Functions inherited from chart::wrapper::ItemConverter | |
static void | InvalidateUnequalItems (SfxItemSet &rDestSet, const SfxItemSet &rSourceSet) |
Invalidates all items in rDestSet, that are set (state SfxItemState::SET) in both item sets (rDestSet and rSourceSet) and have differing content. More... | |
Definition at line 35 of file SeriesOptionsItemConverter.hxx.
chart::wrapper::SeriesOptionsItemConverter::SeriesOptionsItemConverter | ( | const rtl::Reference<::chart::ChartModel > & | xChartModel, |
css::uno::Reference< css::uno::XComponentContext > | xContext, | ||
const rtl::Reference<::chart::DataSeries > & | rPropertySet, | ||
SfxItemPool & | rItemPool | ||
) |
Definition at line 49 of file SeriesOptionsItemConverter.cxx.
References DBG_UNHANDLED_EXCEPTION, chart::DataSeriesHelper::getAttachedAxisIndex(), chart::AxisHelper::getAxis(), chart::DataSeriesHelper::getCoordinateSystemOfSeries(), chart::ChartTypeHelper::getSupportedMissingValueTreatments(), chart::DiagramHelper::isSeriesAttachedToMainAxis(), chart::ChartTypeHelper::isSupportingAxisSideBySide(), chart::ChartTypeHelper::isSupportingBarConnectors(), chart::ChartTypeHelper::isSupportingOverlapAndGapWidthProperties(), chart::ChartTypeHelper::isSupportingStartingAngle(), m_aSupportedMissingValueTreatments, m_bAttachToMainAxis, m_bClockwise, m_bConnectBars, m_bGroupBarsPerAxis, m_bHideLegendEntry, m_bIncludeHiddenCells, m_bSupportingAxisSideBySide, m_bSupportingBarConnectors, m_bSupportingOverlapAndGapWidthProperties, m_bSupportingPlottingOfHiddenCells, m_bSupportingStartingAngle, m_nBarOverlap, m_nGapWidth, m_nMissingValueTreatment, m_nStartingAngle, m_xChartModel, and m_xCooSys.
|
overridevirtual |
Definition at line 157 of file SeriesOptionsItemConverter.cxx.
|
overrideprotectedvirtual |
for items that can not be mapped directly to a property.
This method is called from ApplyItemSet(), if GetItemProperty() returns false.
The default implementation returns just false and shows an assertion
css::uno::Exception |
Reimplemented from chart::wrapper::ItemConverter.
Definition at line 172 of file SeriesOptionsItemConverter.cxx.
References aPropName, CHART_AXIS_PRIMARY_Y, get(), SfxItemSet::Get(), chart::DataSeriesHelper::getAttachedAxisIndex(), chart::AxisHelper::getAxis(), chart::wrapper::ItemConverter::GetPropertySet(), GetValue, m_aSupportedMissingValueTreatments, m_bAttachToMainAxis, m_bConnectBars, m_bGroupBarsPerAxis, m_bHideLegendEntry, m_bIncludeHiddenCells, m_bSupportingAxisSideBySide, m_bSupportingBarConnectors, m_bSupportingOverlapAndGapWidthProperties, m_bSupportingPlottingOfHiddenCells, m_bSupportingStartingAngle, m_nBarOverlap, m_nGapWidth, m_nMissingValueTreatment, m_nStartingAngle, m_xCC, m_xChartModel, m_xCooSys, pos, SCHATTR_AXIS(), SCHATTR_BAR_CONNECT(), SCHATTR_BAR_GAPWIDTH(), SCHATTR_BAR_OVERLAP(), SCHATTR_CLOCKWISE(), SCHATTR_GROUP_BARS_PER_AXIS(), SCHATTR_HIDE_LEGEND_ENTRY(), SCHATTR_INCLUDE_HIDDEN_CELLS(), SCHATTR_MISSING_VALUE_TREATMENT(), SCHATTR_STARTING_ANGLE(), chart::ChartModelHelper::setIncludeHiddenCells(), and TOOLS_WARN_EXCEPTION.
|
overrideprotectedvirtual |
for items that can not be mapped directly to a property.
This method is called from FillItemSet(), if GetItemProperty() returns false.
The default implementation does nothing except showing an assertion
css::uno::Exception |
Reimplemented from chart::wrapper::ItemConverter.
Definition at line 355 of file SeriesOptionsItemConverter.cxx.
References CHART_AXIS_PRIMARY_Y, CHART_AXIS_SECONDARY_Y, m_aSupportedMissingValueTreatments, m_bAttachToMainAxis, m_bClockwise, m_bConnectBars, m_bGroupBarsPerAxis, m_bHideLegendEntry, m_bIncludeHiddenCells, m_bSupportingAxisSideBySide, m_bSupportingBarConnectors, m_bSupportingOverlapAndGapWidthProperties, m_bSupportingPlottingOfHiddenCells, m_bSupportingStartingAngle, m_nBarOverlap, m_nGapWidth, m_nMissingValueTreatment, m_nStartingAngle, SfxItemSet::Put(), SCHATTR_AVAILABLE_MISSING_VALUE_TREATMENTS(), SCHATTR_AXIS(), SCHATTR_AXIS_FOR_ALL_SERIES(), SCHATTR_BAR_CONNECT(), SCHATTR_BAR_GAPWIDTH(), SCHATTR_BAR_OVERLAP(), SCHATTR_CLOCKWISE(), SCHATTR_GROUP_BARS_PER_AXIS(), SCHATTR_HIDE_LEGEND_ENTRY(), SCHATTR_INCLUDE_HIDDEN_CELLS(), SCHATTR_MISSING_VALUE_TREATMENT(), and SCHATTR_STARTING_ANGLE().
|
overrideprotectedvirtual |
implement this method to return a Property object for a given which id.
rOutProperty | If true is returned, this contains the property name and the corresponding Member-Id. |
Implements chart::wrapper::ItemConverter.
Definition at line 167 of file SeriesOptionsItemConverter.cxx.
|
overrideprotectedvirtual |
implement this method to provide an array of which-ranges
Implements chart::wrapper::ItemConverter.
Definition at line 161 of file SeriesOptionsItemConverter.cxx.
References nSeriesOptionsWhichPairs.
|
private |
Definition at line 73 of file SeriesOptionsItemConverter.hxx.
Referenced by ApplySpecialItem(), FillSpecialItem(), and SeriesOptionsItemConverter().
|
private |
Definition at line 56 of file SeriesOptionsItemConverter.hxx.
Referenced by ApplySpecialItem(), FillSpecialItem(), and SeriesOptionsItemConverter().
|
private |
Definition at line 70 of file SeriesOptionsItemConverter.hxx.
Referenced by FillSpecialItem(), and SeriesOptionsItemConverter().
|
private |
Definition at line 62 of file SeriesOptionsItemConverter.hxx.
Referenced by ApplySpecialItem(), FillSpecialItem(), and SeriesOptionsItemConverter().
|
private |
Definition at line 65 of file SeriesOptionsItemConverter.hxx.
Referenced by ApplySpecialItem(), FillSpecialItem(), and SeriesOptionsItemConverter().
|
private |
Definition at line 79 of file SeriesOptionsItemConverter.hxx.
Referenced by ApplySpecialItem(), FillSpecialItem(), and SeriesOptionsItemConverter().
|
private |
Definition at line 77 of file SeriesOptionsItemConverter.hxx.
Referenced by ApplySpecialItem(), FillSpecialItem(), and SeriesOptionsItemConverter().
|
private |
Definition at line 64 of file SeriesOptionsItemConverter.hxx.
Referenced by ApplySpecialItem(), FillSpecialItem(), and SeriesOptionsItemConverter().
|
private |
Definition at line 58 of file SeriesOptionsItemConverter.hxx.
Referenced by ApplySpecialItem(), FillSpecialItem(), and SeriesOptionsItemConverter().
|
private |
Definition at line 57 of file SeriesOptionsItemConverter.hxx.
Referenced by ApplySpecialItem(), FillSpecialItem(), and SeriesOptionsItemConverter().
|
private |
Definition at line 76 of file SeriesOptionsItemConverter.hxx.
Referenced by ApplySpecialItem(), FillSpecialItem(), and SeriesOptionsItemConverter().
|
private |
Definition at line 67 of file SeriesOptionsItemConverter.hxx.
Referenced by ApplySpecialItem(), FillSpecialItem(), and SeriesOptionsItemConverter().
|
private |
Definition at line 60 of file SeriesOptionsItemConverter.hxx.
Referenced by ApplySpecialItem(), FillSpecialItem(), and SeriesOptionsItemConverter().
|
private |
Definition at line 61 of file SeriesOptionsItemConverter.hxx.
Referenced by ApplySpecialItem(), FillSpecialItem(), and SeriesOptionsItemConverter().
|
private |
Definition at line 74 of file SeriesOptionsItemConverter.hxx.
Referenced by ApplySpecialItem(), FillSpecialItem(), and SeriesOptionsItemConverter().
|
private |
Definition at line 68 of file SeriesOptionsItemConverter.hxx.
Referenced by ApplySpecialItem(), FillSpecialItem(), and SeriesOptionsItemConverter().
|
private |
Definition at line 54 of file SeriesOptionsItemConverter.hxx.
Referenced by ApplySpecialItem().
|
private |
Definition at line 53 of file SeriesOptionsItemConverter.hxx.
Referenced by ApplySpecialItem(), and SeriesOptionsItemConverter().
|
private |
Definition at line 71 of file SeriesOptionsItemConverter.hxx.
Referenced by ApplySpecialItem(), and SeriesOptionsItemConverter().