/** Text and properties for a point *ForproofofconcepttomakeTextDataavailableinsvxlevelthis *isinafirstrunprettysimple,butmayneedtobeextendedaccordingly *uptosimilardataasinoox::drawingml::TextBody.
*/ struct SVXCORE_DLLPUBLIC TextBody
{ // text from 1st paragraph (1st run)
OUString msText;
/** A point
*/ struct SVXCORE_DLLPUBLIC Point
{
Point();
// The minimal text data from the imported Diagram // in source format
TextBodyPtr msTextBody;
// The property sequence of pairs<OUString, css::uno::Any>, // interpreted & assigned by the ::addShape(s) creators in the // import filter that created a XShape associated/based on this entry
PointStylePtr msPointStylePtr;
/** Snippet of Diagram ModelData for Diagram-defining data undo/redo
*/ class UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) DiagramDataState
{
Connections maConnections;
Points maPoints;
protected: // Make constructor protected to signal that this anyway pure virtual class // shall not be incarnated - target to use is oox::drawingml::DiagramData
DiagramData();
public: virtual ~DiagramData();
// creates temporary processing data from model data virtualvoid buildDiagramDataModel(bool bClearOoxShapes);
// dump to readable format virtualvoid dump() const = 0;
// evtl. existing alternative imported visualization identifier
::std::vector<OUString> maExtDrawings;
// The model definition, the parts available in svx. // See evtl. parts in oox::drawingml::DiagramData that may need t obe accessed // - logic connections/associations
Connections maConnections;
// - data point entries
Points maPoints;
// - style for the BackgroundShape (if used) // this is the property sequence of pairs<OUString, css::uno::Any>, // as interpreted & assigned by the ::addShape(s) creators in the // import filter
PointStylePtr maBackgroundShapeStyle;
// - Theme definition as css::xml::dom::XDocument // Note: I decided to use dom::XDocument which is already in use, instead of a // temp file what is also possible (implemented that for POC) but would // need to be created in PresentationFragmentHandler::importSlide. If // this needs to be written to a File, please refer to // fileDocxExport::WriteTheme(), look for "OOXTheme"
css::uno::Reference< css::xml::dom::XDocument > mxThemeDocument;
// temporary processing data, partially deleted when using build()
PointNameMap maPointNameMap;
PointsNameMap maPointsPresNameMap;
ConnectionNameMap maConnectionNameMap;
StringMap maPresOfNameMap;
OUString msBackgroundShapeModelID;
};
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.