// Advanced DiagramHelper // // This helper tries to hold all necessary data to re-layout // all XShapes/SdrObjects of an already imported Diagram. The // Diagram holds the SmarArt model data before it gets layouted, // while Theme holds the oox Fill/Line/Style definitions to // apply. // Re-Layouting (re-creating) is rather complex, for detailed // information see ::reLayout implementation. // This helper class may/should be extended to: // - deliver representative data from the Diagram-Model // - modify it eventually // - im/export Diagram model to other representations class AdvancedDiagramHelper final : public svx::diagram::IDiagramHelper
{ const std::shared_ptr< Diagram > mpDiagramPtr;
std::shared_ptr<::oox::drawingml::Theme> mpThemePtr;
// get text representation of data tree virtual OUString getString() const override;
// get children of provided data node // use empty string for top-level nodes // returns vector of (id, text) virtual std::vector<std::pair<OUString, OUString>> getChildren(const OUString& rParentId) const override;
// add/remove new top-level node to data model, returns its id virtual OUString addNode(const OUString& rText) override; virtualbool removeNode(const OUString& rNodeId) override;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.