LibreOffice Module chart2 (master) 1
|
#include <ObjectHierarchy.hxx>
Public Types | |
typedef std::vector< ObjectIdentifier > | tChildContainer |
Public Member Functions | |
ObjectHierarchy (const rtl::Reference<::chart::ChartModel > &xChartDocument, ExplicitValueProvider *pExplicitValueProvider, bool bFlattenDiagram=false, bool bOrderingForElementSelector=false) | |
~ObjectHierarchy () | |
const tChildContainer & | getTopLevelChildren () const |
equal to getChildren( getRootNodeOID()) More... | |
bool | hasChildren (const ObjectIdentifier &rParent) const |
const tChildContainer & | getChildren (const ObjectIdentifier &rParent) const |
const tChildContainer & | getSiblings (const ObjectIdentifier &rNode) const |
ObjectIdentifier | getParent (const ObjectIdentifier &rNode) const |
The result is empty, if the node cannot be found in the tree. More... | |
sal_Int32 | getIndexInParent (const ObjectIdentifier &rNode) const |
Static Public Member Functions | |
static ObjectIdentifier | getRootNodeOID () |
static bool | isRootNode (const ObjectIdentifier &rOID) |
Private Types | |
typedef std::map< ObjectIdentifier, tChildContainer > | tChildMap |
Private Member Functions | |
void | createTree (const rtl::Reference<::chart::ChartModel > &xChartDocument) |
void | createAxesTree (tChildContainer &rContainer, const rtl::Reference<::chart::ChartModel > &xChartDoc, const rtl::Reference< ::chart::Diagram > &xDiagram) |
void | createDiagramTree (tChildContainer &rContainer, const rtl::Reference<::chart::ChartModel > &xChartDoc, const rtl::Reference< ::chart::Diagram > &xDiagram) |
void | createDataSeriesTree (tChildContainer &rOutDiagramSubContainer, const rtl::Reference< ::chart::Diagram > &xDiagram) |
void | createLegendTree (tChildContainer &rContainer, const rtl::Reference<::chart::ChartModel > &xChartDoc, const rtl::Reference< ::chart::Diagram > &xDiagram) |
void | createAdditionalShapesTree (tChildContainer &rContainer) |
ObjectIdentifier | getParentImpl (const ObjectIdentifier &rParentOID, const ObjectIdentifier &rOID) const |
Static Private Member Functions | |
static void | createWallAndFloor (tChildContainer &rContainer, const rtl::Reference< ::chart::Diagram > &xDiagram) |
Private Attributes | |
tChildMap | m_aChildMap |
ExplicitValueProvider * | m_pExplicitValueProvider |
bool | m_bFlattenDiagram |
bool | m_bOrderingForElementSelector |
Definition at line 34 of file ObjectHierarchy.hxx.
typedef std::vector< ObjectIdentifier > chart::ObjectHierarchy::tChildContainer |
Definition at line 37 of file ObjectHierarchy.hxx.
|
private |
Definition at line 90 of file ObjectHierarchy.hxx.
|
explicit |
bFlattenDiagram | If <TRUE>, the content of the diagram (data series, wall, floor, etc.) is treated as being at the same level as the diagram. (This is used for keyboard navigation). |
Definition at line 517 of file ObjectHierarchy.cxx.
References createTree(), and m_pExplicitValueProvider.
chart::ObjectHierarchy::~ObjectHierarchy | ( | ) |
Definition at line 531 of file ObjectHierarchy.cxx.
|
private |
Definition at line 417 of file ObjectHierarchy.cxx.
References DBG_UNHANDLED_EXCEPTION, chart::DrawModelWrapper::getChartRootShape(), i, m_pExplicitValueProvider, and nCount.
Referenced by createTree().
|
private |
Definition at line 211 of file ObjectHierarchy.cxx.
References chart::ObjectIdentifier::createClassifiedIdentifierForGrid(), chart::ObjectIdentifier::createClassifiedIdentifierForObject(), chart::AxisHelper::getAllAxesOfDiagram(), chart::AxisHelper::getIndicesForAxis(), chart::AxisHelper::isAxisVisible(), chart::AxisHelper::isGridVisible(), chart::ChartTypeHelper::isSupportingMainAxis(), chart::ChartTypeHelper::isSupportingSecondaryAxis(), and m_bOrderingForElementSelector.
Referenced by createDiagramTree().
|
private |
Definition at line 317 of file ObjectHierarchy.cxx.
References CHART_UNONAME_ERRORBAR_X, CHART_UNONAME_ERRORBAR_Y, chart::ObjectIdentifier::createClassifiedIdentifierForParticle(), chart::ObjectIdentifier::createClassifiedIdentifierForParticles(), chart::ObjectIdentifier::createClassifiedIdentifierWithParent(), chart::ObjectIdentifier::createDataCurveCID(), chart::ObjectIdentifier::createDataCurveEquationCID(), chart::ObjectIdentifier::createParticleForSeries(), DBG_UNHANDLED_EXCEPTION, chart::ChartTypeHelper::getNumberOfDisplayedSeries(), chart::ObjectIdentifier::getObjectCID(), chart::ObjectIdentifier::getStringForType(), chart::DataSeriesHelper::hasDataLabelsAtSeries(), chart::RegressionCurveHelper::hasEquation(), chart::RegressionCurveHelper::isMeanValueLine(), chart::ChartTypeHelper::isSupportingStatisticProperties(), m_aChildMap, m_pExplicitValueProvider, chart::OBJECTTYPE_DATA_ERRORS_X, chart::OBJECTTYPE_DATA_ERRORS_Y, chart::OBJECTTYPE_DATA_LABELS, and u.
Referenced by createDiagramTree().
|
private |
Definition at line 299 of file ObjectHierarchy.cxx.
References createAxesTree(), createDataSeriesTree(), createWallAndFloor(), and m_bOrderingForElementSelector.
Referenced by createTree().
|
private |
Definition at line 187 of file ObjectHierarchy.cxx.
References chart::ObjectIdentifier::createClassifiedIdentifierForObject(), chart::ObjectIdentifier::getObjectCID(), chart::LegendHelper::hasLegend(), m_aChildMap, and m_pExplicitValueProvider.
Referenced by createTree().
|
private |
Definition at line 108 of file ObjectHierarchy.cxx.
References createAdditionalShapesTree(), chart::ObjectIdentifier::createClassifiedIdentifier(), chart::ObjectIdentifier::createClassifiedIdentifierForObject(), createDiagramTree(), createLegendTree(), createWallAndFloor(), chart::AxisHelper::getAllAxesOfDiagram(), getRootNodeOID(), m_aChildMap, m_bFlattenDiagram, m_bOrderingForElementSelector, chart::OBJECTTYPE_PAGE, and u.
Referenced by ObjectHierarchy().
|
staticprivate |
Definition at line 281 of file ObjectHierarchy.cxx.
References chart::ObjectIdentifier::createClassifiedIdentifier(), chart::OBJECTTYPE_DIAGRAM_FLOOR, chart::OBJECTTYPE_DIAGRAM_WALL, and u.
Referenced by createDiagramTree(), and createTree().
const ObjectHierarchy::tChildContainer & chart::ObjectHierarchy::getChildren | ( | const ObjectIdentifier & | rParent | ) | const |
Definition at line 456 of file ObjectHierarchy.cxx.
References EMPTY, chart::ObjectIdentifier::isValid(), and m_aChildMap.
Referenced by chart::ObjectKeyNavigation::down(), getIndexInParent(), getParentImpl(), getTopLevelChildren(), and chart::lcl_addObjectsToList().
sal_Int32 chart::ObjectHierarchy::getIndexInParent | ( | const ObjectIdentifier & | rNode | ) | const |
Definition at line 549 of file ObjectHierarchy.cxx.
References getChildren(), getParent(), and nIndex.
ObjectIdentifier chart::ObjectHierarchy::getParent | ( | const ObjectIdentifier & | rNode | ) | const |
The result is empty, if the node cannot be found in the tree.
Definition at line 511 of file ObjectHierarchy.cxx.
References getParentImpl(), and getRootNodeOID().
Referenced by getIndexInParent(), and chart::ObjectKeyNavigation::up().
|
private |
Definition at line 484 of file ObjectHierarchy.cxx.
References getChildren(), getParentImpl(), and chart::ObjectIdentifier::isValid().
Referenced by getParent(), and getParentImpl().
|
static |
Definition at line 534 of file ObjectHierarchy.cxx.
Referenced by createTree(), ChartWindowUIObject::get_children(), getParent(), getTopLevelChildren(), isRootNode(), chart::ObjectKeyNavigation::ObjectKeyNavigation(), and chart::SelectorListBox::UpdateChartElementsListAndSelection().
const ObjectHierarchy::tChildContainer & chart::ObjectHierarchy::getSiblings | ( | const ObjectIdentifier & | rNode | ) | const |
Definition at line 468 of file ObjectHierarchy.cxx.
References EMPTY, isRootNode(), chart::ObjectIdentifier::isValid(), and m_aChildMap.
Referenced by chart::ObjectKeyNavigation::first(), chart::ObjectKeyNavigation::last(), chart::ObjectKeyNavigation::next(), and chart::ObjectKeyNavigation::previous().
const ObjectHierarchy::tChildContainer & chart::ObjectHierarchy::getTopLevelChildren | ( | ) | const |
equal to getChildren( getRootNodeOID())
Definition at line 544 of file ObjectHierarchy.cxx.
References getChildren(), and getRootNodeOID().
Referenced by chart::ObjectKeyNavigation::veryFirst(), and chart::ObjectKeyNavigation::veryLast().
bool chart::ObjectHierarchy::hasChildren | ( | const ObjectIdentifier & | rParent | ) | const |
Definition at line 445 of file ObjectHierarchy.cxx.
References chart::ObjectIdentifier::isValid(), and m_aChildMap.
Referenced by chart::ObjectKeyNavigation::down().
|
static |
Definition at line 539 of file ObjectHierarchy.cxx.
References getRootNodeOID().
Referenced by chart::ChartController::execute_KeyInput(), getSiblings(), and chart::ObjectKeyNavigation::up().
|
private |
Definition at line 91 of file ObjectHierarchy.hxx.
Referenced by createDataSeriesTree(), createLegendTree(), createTree(), getChildren(), getSiblings(), and hasChildren().
|
private |
Definition at line 93 of file ObjectHierarchy.hxx.
Referenced by createTree().
|
private |
Definition at line 94 of file ObjectHierarchy.hxx.
Referenced by createAxesTree(), createDiagramTree(), and createTree().
|
private |
Definition at line 92 of file ObjectHierarchy.hxx.
Referenced by createAdditionalShapesTree(), createDataSeriesTree(), createLegendTree(), and ObjectHierarchy().