From f91d74da5571b877126f4f753c4134054fa606bb Mon Sep 17 00:00:00 2001 From: Bayram Çiçek Date: Thu, 18 Jul 2024 16:31:46 +0300 Subject: tdf#158857: [Power Query] export xl/drawings/drawing*.xml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit xl/drawings/drawing*.xml: - import&export "macro", "textlink", "fLocksText" and "fPublished" attribute of element (using GrabBag). - import&export "descr" and "title" attributes of - import "r:id", "invalidUrl", "action", "tgtFrame", "tooltip", "history", "highlightClick", "endSnd" attributes of Signed-off-by: Bayram Çiçek Change-Id: Idd865fc86c3538107e4c9808b0886733c798b01f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170691 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- include/oox/drawingml/shape.hxx | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'include/oox') diff --git a/include/oox/drawingml/shape.hxx b/include/oox/drawingml/shape.hxx index dbde9abd4bc7..81797757faaf 100644 --- a/include/oox/drawingml/shape.hxx +++ b/include/oox/drawingml/shape.hxx @@ -175,6 +175,11 @@ public: const OUString& getId() const { return msId; } void setDescription( const OUString& rDescr ) { msDescription = rDescr; } void setDecorative(bool const isDecorative) { m_isDecorative = isDecorative; } + void setMacro(const OUString& rMacro) { msMacro = rMacro; } + void setTextLinkAttr(const OUString& rTextLink) { msTextLink = rTextLink; } + void setFLocksText(bool bFLocksText) { mbFLocksText = bFLocksText; } + void setFPublished(bool bFPublished) { mbFPublished = bFPublished; } + void setTitle(const OUString& rTitle) { msTitle = rTitle; } void setHidden( bool bHidden ) { mbHidden = bHidden; } void setHiddenMasterShape( bool bHiddenMasterShape ) { mbHiddenMasterShape = bHiddenMasterShape; } void setLocked( bool bLocked ) { mbLocked = bLocked; } @@ -362,7 +367,33 @@ protected: OUString msInternalName; // used by diagram; not displayed in UI OUString msId; OUString msDescription; + OUString msTitle; bool m_isDecorative = false; + + /* (Shape) : This element specifies the existence of a single shape. + + Attributes: + - macro (Reference to Custom Function) + - textlink (Text Link) + - fLocksText (Lock Text Flag) + - fPublished (Publish to Server Flag) + + element can exist as a namespace format like , etc... + */ + + /* specifies the custom function associated with the object. + "macro" attribute for element */ + OUString msMacro; + /* specifies a formula linking to spreadsheet cell data. + "textlink" attribute for element */ + OUString msTextLink; + /* indicates whether to allow text editing within this drawing object when the parent worksheet is protected. + "fLocksText" attribute for element */ + bool mbFLocksText = true; // default="true" + /* indicates whether the shape shall be published with the worksheet when sent to the server. + "fPublished" attribute for element */ + bool mbFPublished = false; + sal_Int32 mnSubType; // if this type is not zero, then the shape is a placeholder std::optional< sal_Int32 > moSubTypeIndex; -- cgit