From 0deea02b1da1001fa497dc5afa5e43207af491d5 Mon Sep 17 00:00:00 2001 From: Sarper Akdemir Date: Sat, 19 Aug 2023 17:18:50 +0300 Subject: tdf#138792: PDF export: add batch of dublin core attributes Adds support for exporting, editing in the UI and storage in ODF for the dublin core attributes listed below. Contributor (http://purl.org/dc/elements/1.1/contributor) Coverage (http://purl.org/dc/elements/1.1/coverage) Identifier (http://purl.org/dc/elements/1.1/identifier) Publisher (http://purl.org/dc/elements/1.1/publisher) Relation (http://purl.org/dc/elements/1.1/relation) Rights (http://purl.org/dc/elements/1.1/rights) Source (http://purl.org/dc/elements/1.1/source) Type (http://purl.org/dc/elements/1.1/type) Introduces XDocumentProperties2 to extend XDocumentProperties interface. Change-Id: Ie2e0b1fbbbd00b66aef477ba1bf4e4f61c03a3b3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156330 Tested-by: Jenkins Reviewed-by: Sarper Akdemir --- include/sfx2/dinfdlg.hxx | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'include/sfx2') diff --git a/include/sfx2/dinfdlg.hxx b/include/sfx2/dinfdlg.hxx index 2acbc93cffe9..874e127f20b5 100644 --- a/include/sfx2/dinfdlg.hxx +++ b/include/sfx2/dinfdlg.hxx @@ -72,6 +72,14 @@ private: sal_Int32 m_EditingDuration; OUString m_Description; OUString m_Keywords; + OUString m_Contributor; + OUString m_Coverage; + OUString m_Identifier; + OUString m_Publisher; + OUString m_Relation; + OUString m_Rights; + OUString m_Source; + OUString m_Type; OUString m_Subject; OUString m_Title; bool m_bHasTemplate; @@ -120,6 +128,22 @@ public: void setDescription(const OUString& i_val) { m_Description = i_val; } const OUString& getKeywords() const { return m_Keywords; } void setKeywords(const OUString& i_val) { m_Keywords = i_val; } + const OUString& getContributor() const { return m_Contributor; } + void setContributor(const OUString& i_val) { m_Contributor = i_val; } + const OUString& getCoverage() const { return m_Coverage; } + void setCoverage(const OUString& i_val) { m_Coverage = i_val; } + const OUString& getIdentifier() const { return m_Identifier; } + void setIdentifier(const OUString& i_val) { m_Identifier = i_val; } + const OUString& getPublisher() const { return m_Publisher; } + void setPublisher(const OUString& i_val) { m_Publisher = i_val; } + const OUString& getRelation() const { return m_Relation; } + void setRelation(const OUString& i_val) { m_Relation = i_val; } + const OUString& getRights() const { return m_Rights; } + void setRights(const OUString& i_val) { m_Rights = i_val; } + const OUString& getSource() const { return m_Source; } + void setSource(const OUString& i_val) { m_Source = i_val; } + const OUString& getType() const { return m_Type; } + void setType(const OUString& i_val) { m_Type = i_val; } const OUString& getSubject() const { return m_Subject; } void setSubject(const OUString& i_val) { m_Subject = i_val; } const OUString& getTitle() const { return m_Title; } @@ -217,6 +241,14 @@ private: std::unique_ptr m_xTitleEd; std::unique_ptr m_xThemaEd; std::unique_ptr m_xKeywordsEd; + std::unique_ptr m_xContributorEd; + std::unique_ptr m_xCoverageEd; + std::unique_ptr m_xIdentifierEd; + std::unique_ptr m_xPublisherEd; + std::unique_ptr m_xRelationEd; + std::unique_ptr m_xRightsEd; + std::unique_ptr m_xSourceEd; + std::unique_ptr m_xTypeEd; std::unique_ptr m_xCommentEd; virtual bool FillItemSet( SfxItemSet* ) override; -- cgit