summaryrefslogtreecommitdiff
path: root/include/oox
diff options
context:
space:
mode:
authorBayram Çiçek <bayram.cicek@collabora.com>2024-07-18 16:31:46 +0300
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-08-16 17:04:59 +0200
commitf91d74da5571b877126f4f753c4134054fa606bb (patch)
tree50fed887ec85fb762404e730bc76b312faf37ea3 /include/oox
parentef25059c74b7fd756548da07aec68a71f235b12a (diff)
tdf#158857: [Power Query] export xl/drawings/drawing*.xml
xl/drawings/drawing*.xml: - import&export "macro", "textlink", "fLocksText" and "fPublished" attribute of <sp> element (using GrabBag). - import&export "descr" and "title" attributes of <cNvPr> - import "r:id", "invalidUrl", "action", "tgtFrame", "tooltip", "history", "highlightClick", "endSnd" attributes of <hlinkClick> Signed-off-by: Bayram Çiçek <bayram.cicek@collabora.com> Change-Id: Idd865fc86c3538107e4c9808b0886733c798b01f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170691 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'include/oox')
-rw-r--r--include/oox/drawingml/shape.hxx31
1 files changed, 31 insertions, 0 deletions
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;
+
+ /* <sp> (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)
+
+ <sp> element can exist as a namespace format like <xdr:sp>, <cdr:sp> etc...
+ */
+
+ /* specifies the custom function associated with the object.
+ "macro" attribute for <sp> element */
+ OUString msMacro;
+ /* specifies a formula linking to spreadsheet cell data.
+ "textlink" attribute for <sp> element */
+ OUString msTextLink;
+ /* indicates whether to allow text editing within this drawing object when the parent worksheet is protected.
+ "fLocksText" attribute for <sp> element */
+ bool mbFLocksText = true; // default="true"
+ /* indicates whether the shape shall be published with the worksheet when sent to the server.
+ "fPublished" attribute for <sp> element */
+ bool mbFPublished = false;
+
sal_Int32 mnSubType; // if this type is not zero, then the shape is a placeholder
std::optional< sal_Int32 > moSubTypeIndex;